tj / consolidate.js

Template engine consolidation library for node.js
3.48k stars 357 forks source link

Partials Underscore Compile #305

Closed jaysonpotter closed 6 years ago

jaysonpotter commented 6 years ago

Made a small quick modification to the underscore support render method to allow the template partials to get compiled allowing data to get passed to those as well.

var user = {username: 'Beetlejuice'}; <%= partials.xanadu(user) %>

Ya dig?

doowb commented 6 years ago

Thanks!

Will you add a fixture for this in test/fixtures/underscore and include underscore in the partials tests? I'll review this weekend and get it merged.

jaysonpotter commented 6 years ago

Oh you bet! Happy to and THANK YOU!