bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

Templates in views folder do not render when using a client folder #138

Closed DirkStevens closed 11 years ago

DirkStevens commented 11 years ago

It looks like the practice advised by Meteor to use client and server folders introduces some confusion for Blade.

The Blade templates were compiled into JS functions and loaded in the app. However in Meteor.startup the template just won't render:

$("body").append(Meteor.render(Template.ask));

DirkStevens commented 11 years ago

The solution is to move the views folder under the client folder (root/client/views") and change the reference to the template:

$("body").append(Meteor.render(Template["client/views/ask"]));

Now it works.

Still an issue though with the rendered handler though: https://github.com/bminer/node-blade/issues/136