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

Use handlebars to compile html templates? #1340

Closed
janus-reith opened this issue Apr 26, 2017 · 3 comments
Closed

Use handlebars to compile html templates? #1340

janus-reith opened this issue Apr 26, 2017 · 3 comments

Comments

@janus-reith
Copy link

janus-reith commented Apr 26, 2017

I want to have static files with html syntax and handlebars vars/functions,
and want to render them to a static html file.

I can easily achieve that with pug, the integrated commandline tool takes a .pug template and renders it to html.

I prefer to use plain html syntax and therefore would like to use handlebars,
but the cli just outputs a function to the output file.

How can I achieve that something like handlebars inputfile.hbs outputfile.html
creates a html file, that doesn't depend on any js anymore?(want to use this for mail templates)

@janus-reith janus-reith changed the title Use handelbars to compile html templates? Use handlebars to compile html templates? Apr 26, 2017
@nknapp
Copy link
Collaborator

nknapp commented Apr 27, 2017

This project looks promising, although I have never tried it.
I have created bootprint for a similar purpose, but it may be more than you need.

@nknapp nknapp closed this as completed May 13, 2017
@marktmcewan
Copy link

@janus-reith Hey Janus, just found this while hunting down some ideas - i am trying to do the same as you, did you have any success ?
I have a HTML file that i would like to push data into using handlebars including naming it as a new .html page

@janus-reith
Copy link
Author

Hi @heyitsreach, https://github.com/debrouwere/render worked for me.

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

3 participants