You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding debug:true to the Eta constructor causes crashes.
templates/mypage.eta template page:
--- start of mypage.eta ---
<%~
/* According to 'merge' principle in the documentation, header.eta should receive it.lang and it.name */
include('header.eta',{name:'Ben'}); %>
--- end of mypage.eta ---
which uses the header templates/header.eta partial:
--header.eta
<html lang="<%~ it?.lang%>">
hi I am a header
<tag lang="<%~ JSON.stringify(it) %>">
--end header.eta
And we execute it using a simple script test.js:
import { Eta } from "https://deno.land/x/[email protected]/src/index.ts";
// WORKS:
const etaDebugFalse = new Eta({ views: Deno.cwd() + '/templates' });
// CAUSES A CRASH IN eta.render()
const etaDebugTrue = new Eta({ views: Deno.cwd() + '/templates', debug:true });
console.log( etaDebugFalse.render("mypage.eta", { lang: "en" }) );
console.log( etaDebugTrue.render("mypage.eta", { lang: "en" }) );
Adding debug:true to the Eta constructor causes crashes.
templates/mypage.eta
template page:which uses the header
templates/header.eta
partial:And we execute it using a simple script
test.js
:Originally posted by @morandd in #254 (comment)
The text was updated successfully, but these errors were encountered: