Skip to content

compatibility fix with Play 1.x #{extends}#11

Open
cbxp wants to merge 1 commit intombknor:masterfrom
codeborne:extends-must-see-local-vars
Open

compatibility fix with Play 1.x #{extends}#11
cbxp wants to merge 1 commit intombknor:masterfrom
codeborne:extends-must-see-local-vars

Conversation

@cbxp
Copy link
Copy Markdown

@cbxp cbxp commented Jan 4, 2017

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/}

@mbknor
Copy link
Copy Markdown
Owner

mbknor commented Jan 4, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants