0.4.1: Template engine is always default

30 views
Skip to first unread message

Weber A.

unread,
Apr 22, 2015, 10:03:34 AM4/22/15
to socket...@googlegroups.com
Hi,

I've defined my client to load the templates from the angular directory (tmpl: 'angular').
Then I've set the template engine like this:
ss.client.templateEngine.use('angular');

However I get my templates always formatted with the default formatter.

The same results for
ss.client.templateEngine.use('angular', '/templates/angular');
ss.client.templateEngine.use('angular', './templates/angular');
ss.client.templateEngine.use('angular', './angular');
ss.client.templateEngine.use('angular', '/angular');

If I set a breakpoint at lib/client/template_engine.js function selectEngine I can see that the code path is always "templates/angular" and the engines are ".", "./angular", "./templates/angular" and therefore never match.

How can I solve this problem?

Thank you,
   Andreas

Weber A.

unread,
Apr 28, 2015, 7:49:15 AM4/28/15
to socket...@googlegroups.com
No change in 0.4.2. The template engine is still always default because the list of template engines always contain a leading "." and the path of the file never does.

Henrik Vendelbo

unread,
Apr 28, 2015, 8:27:19 AM4/28/15
to socket...@googlegroups.com
I will have a look at that, if you are on GitHub it would be great if you post an issue.


On Wednesday, April 22, 2015 at 4:03:34 PM UTC+2, Weber A. wrote:

Henrik Vendelbo

unread,
Jun 3, 2015, 2:58:40 PM6/3/15
to socket...@googlegroups.com
Will be fixed in 0.4.3, currently fixed on master branch


On Wednesday, April 22, 2015 at 4:03:34 PM UTC+2, Weber A. wrote:
Reply all
Reply to author
Forward
0 new messages