Skip to main content
Module

x/lume/tests/assets/module/simple.tmpl.js

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
export const title = "Module example";export const layout = "layout.tmpl.js";export const url = "/simple-page-new-permalink.html";
const content = `<p>This is a simple page.</p><a class="link-1" href="/">Go to home page</a><a class="link-2" href="~/simple.tmpl.js">Go to simple page</a>`;
export default function ({ title }, { url, htmlUrl }) { return ` <h1>${title}</h1> <nav> <a class="home" href="${url("/", true)}">Back to home</a> </nav> <div> ${htmlUrl(content)} </div> `;}