koajs / ejs

a koa view render middleware, support all feature of ejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom delimiters not supported

adamkdean opened this issue · comments

Look here: https://github.com/tj/ejs

Custom delimiters can also be applied globally:

var ejs = require('ejs');
ejs.open = '{{';
ejs.close = '}}';

Which would make the following a valid template:

<h1>{{= title }}</h1>

I thought koa-ejs supported all features? If so, howcome this isn't supported?

Ignore this, they have to be set in the settings, and aren't accessible in the same was as ejs.