Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running src/cli.js prints undefined #429

Open
leeN opened this issue Sep 19, 2022 · 0 comments
Open

Running src/cli.js prints undefined #429

leeN opened this issue Sep 19, 2022 · 0 comments

Comments

@leeN
Copy link

leeN commented Sep 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant