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
A basic HTTP server, like this one, should be integrated with groom to locally serve rendered templates. The majority use-case for Mustache (and Handlebar) templates are websites and HTML. It would be nice during development of templates and testing to "host" the website generated from the templates.
A -s,--serve flag or a serve subcommand along with an alternative consuming method to the builder API for the application should be added. This would require renaming the run method to something like render or process and adding serve method that would consume the Groom struct and run the built-in server.
When the --serve flag is issued, groom would render the input template with the specified data and then look for a .html file of the same name as the template to serve. The server would start after rendering and be locally hosted at http://localhost:8080. A -p, --port option would also be added to change the port at run time.
The text was updated successfully, but these errors were encountered:
A basic HTTP server, like this one, should be integrated with groom to locally serve rendered templates. The majority use-case for Mustache (and Handlebar) templates are websites and HTML. It would be nice during development of templates and testing to "host" the website generated from the templates.
A
-s,--serve
flag or aserve
subcommand along with an alternative consuming method to the builder API for the application should be added. This would require renaming therun
method to something likerender
orprocess
and addingserve
method that would consume the Groom struct and run the built-in server.When the
--serve
flag is issued, groom would render the input template with the specified data and then look for a.html
file of the same name as the template to serve. The server would start after rendering and be locally hosted at http://localhost:8080. A-p, --port
option would also be added to change the port at run time.The text was updated successfully, but these errors were encountered: