Skip to main content
Module

x/lume/tests/__snapshots__/eta.test.ts.snap

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
export const snapshot = {};
snapshot[`build a site with eta 1`] = `1`;
snapshot[`build a site with eta 2`] = `{ formats: [ { engines: 1, ext: ".tmpl.ts", pageLoader: [AsyncFunction: module], }, { engines: 1, ext: ".tmpl.js", pageLoader: [AsyncFunction: module], }, { engines: undefined, ext: ".tmpl.json", pageLoader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], engines: undefined, ext: ".json", }, { engines: 1, ext: ".md", pageLoader: [AsyncFunction: text], }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", }, { componentLoader: [AsyncFunction: text], engines: 1, ext: ".njk", includesPath: "_includes", pageLoader: [AsyncFunction: text], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yaml", pageLoader: [AsyncFunction: yaml], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yml", pageLoader: [AsyncFunction: yaml], }, { componentLoader: [AsyncFunction: text], engines: 1, ext: ".eta", includesPath: "_includes", pageLoader: [AsyncFunction: text], }, ],}`;
snapshot[`build a site with eta 3`] = `[]`;
snapshot[`build a site with eta 4`] = `{ content: \`<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Eta example</title></head><body> <nav> <a href="/blog/">Go to home</a> </nav> <h1>Timothy's Eta source code!</h1><footer>This is a footer of Timothy</footer><footer>This is a footer of Timothy</footer></body></html>\`, data: { content: \`<h1><%= name %>'s Eta source code!</h1><%~ await includeFile("footer", { name }) %><%~ await includeFile("./_includes/footer", { name }) %>\`, date: 1970-01-01T00:00:00.000Z, layout: "layout.eta", name: "Timothy", page: undefined, paginate: [Function: paginate], search: Search {}, tags: [ ], title: "Eta example", url: "/", }, dest: { ext: ".html", path: "/index", }, src: { ext: ".eta", path: "/index", remote: undefined, },}`;