adobe / adobe/htlengine

Running src/cli.js prints undefined

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
49
Forks
20
Avg merge
3h 46m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.