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
i tred to used this tempate engine with expressjs framework.
if i use temaplet with out layout it works. E.g
<div>Hello, World!</div>
if i use with layout it thorw exception. E.g
<% extend 'layout' %><div>Hello, World!</div>
Here is error:
Error: Failed to load template D:\Mirodil\Dropbox\justdoit\bigshop\views
D:\Mirodil\Dropbox\justdoit\bigshop\views\index.ect
at read (C:\Program Files\nodejs\node_modules\ect\lib\ect.js:245:13)
The problem in the rendering, expressjs pass full path of themplate file and in the tempate it render without any error if in this tempate does not contanins any referens to other templates.
The text was updated successfully, but these errors were encountered:
Use root option to set templates root folder. Also you need to pass template name with extension to layout or include function in your templates. ext option not working with express at this moment.
i tred to used this tempate engine with expressjs framework.
if i use temaplet with out layout it works. E.g
if i use with layout it thorw exception. E.g
Here is error:
Error: Failed to load template D:\Mirodil\Dropbox\justdoit\bigshop\views
D:\Mirodil\Dropbox\justdoit\bigshop\views\index.ect
at read (C:\Program Files\nodejs\node_modules\ect\lib\ect.js:245:13)
The problem in the rendering, expressjs pass full path of themplate file and in the tempate it render without any error if in this tempate does not contanins any referens to other templates.
The text was updated successfully, but these errors were encountered: