baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax

Home Page:http://ectjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

variable in template

RidgeA opened this issue · comments

HI.
I found issue with variables declaration in templates.
For example this snippet:

<% 
	blockClass = if (true) then "bad-result" else 'good-result'
%>
<%- blockClass %>

Error - "Parse error: Unexpected 'POST_IF' in page" (in ectjs.com sandbox)