node-webkit + templating engine?

7 views
Skip to first unread message

ejste...@gmail.com

unread,
Dec 19, 2013, 11:44:19 AM12/19/13
to node-...@googlegroups.com
Is it possible to use node-webkit in conjunction with a templating engine, such as handlebars or mustache?

I'm coming from the Ruby on Rails world, so I'm looking for something similar to how Ruby's ERB is used in Rails.

Anyone know of any node-webkit templating examples online?

Ewald Horn

unread,
Dec 19, 2013, 11:48:17 AM12/19/13
to node-...@googlegroups.com
Hi,

I'm using AngularJS and it just works for me as it's easy to use the directives to build HTML pages dynamically.  Or am I not understanding your question?

Kind regards,
Ewald


--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ejste...@gmail.com

unread,
Dec 19, 2013, 12:04:13 PM12/19/13
to node-...@googlegroups.com
Okay, I realize now I could've worded my question better.  But your response does help.  I guess you're alluding to the fact that client-side templating libraries work, such as AngularJS or maybe Ember, Meteor, Derby etc.  That's good to know.

ERB is a server-side templating engine, so I guess this would be more analogous to Jade.  I'll look into if Jade works within node-webkit...

Thanks.

Ewald Horn

unread,
Dec 19, 2013, 12:10:01 PM12/19/13
to node-...@googlegroups.com
Ah,

I see - you were referring to server-side - might I ask why you'd want to run Node Webkit server-side at all?

Kind regards,
Ewald

ejste...@gmail.com

unread,
Dec 19, 2013, 1:34:36 PM12/19/13
to node-...@googlegroups.com
A misunderstanding on my part.  I eventually came across this:


For template engine, node.js guys have always been comfortable with rendering at server side and then send result to clients. In node-webkit everything is at client side, you don't need to render the template and then feed it to node-webkit, you could just render everything after the page is loaded.
The basic idea is: use the template engine to generate contents on the fly, and then append dynamic contents into the DOM.

Ewald Horn

unread,
Dec 19, 2013, 1:37:09 PM12/19/13
to node-...@googlegroups.com
Node Webkit is awesome mmm?
Reply all
Reply to author
Forward
0 new messages