gt-engine icon indicating copy to clipboard operation
gt-engine copied to clipboard

compatibility fix with Play 1.x #{extends}

Open cbxp opened this issue 8 years ago • 1 comments

In real Play 1.x templates, you can define a variable in template and then access it from the #{extend}-ed template.

This pull request replicates this behaviour for compatibility.

example.html

#{extends 'main.html'}
%{title = 'Hello'}%

main.html

<title>${title ?: 'Default title'}</title>
#{doLayout/}

cbxp avatar Jan 04 '17 08:01 cbxp

Hi,

And thanks for being interested in this project.

But since I have not worked on it since Apr 16, 2013 and is not in any way using it any longer, I think it might be better for you to fork it if your going to update it.

Regards, Morten

mbknor avatar Jan 04 '17 17:01 mbknor