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
I tried to follow the example from the readme to render a template. Based on reading the code of src/cli.js it seems like the correct invocation is e.g., node src/cli.js test/templates/simple2.htl
Expected Behaviour
The rendered template getting printed.
Actual Behaviour
htlengine prints 'undefined'
Fix
I found that changing line 50 in src/cli.js to console.log(ret);, i.e., removing the .body property access fixes the issue.
Cheers,
leeN
The text was updated successfully, but these errors were encountered:
I tried to follow the example from the readme to render a template. Based on reading the code of
src/cli.js
it seems like the correct invocation is e.g.,node src/cli.js test/templates/simple2.htl
Expected Behaviour
The rendered template getting printed.
Actual Behaviour
htlengine prints 'undefined'
Fix
I found that changing line 50 in
src/cli.js
toconsole.log(ret);
, i.e., removing the.body
property access fixes the issue.Cheers,
leeN
The text was updated successfully, but these errors were encountered: