ejs icon indicating copy to clipboard operation
ejs copied to clipboard

include keyword breaks Templar

Open isaacs opened this issue 12 years ago • 3 comments

In EJS 0.8, the new include keyword collides with the include() function that https://github.com/isaacs/templar provides. Also, it looks like it has different semantics and behavior. (Templar's include() returns a string. EJS's loads the template inline. Templar's lets you pass specific data. EJS's uses the same data.)

It would be better, I think, to allow this feature to be disabled (and/or the keyword modified) with a configuration option. Is this a reasonable feature in your opinion? If so, I'll write a patch.

isaacs avatar Jul 08 '13 14:07 isaacs

option sounds good to me

tj avatar Jul 08 '13 15:07 tj

Would you prefer it to be on by default or off by default?

isaacs avatar Jul 08 '13 15:07 isaacs

probably best to leave it enabled by default to BC

tj avatar Jul 08 '13 19:07 tj