Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send parameters through nested includes #41

Closed
dpcardoso opened this issue May 13, 2014 · 1 comment
Closed

Send parameters through nested includes #41

dpcardoso opened this issue May 13, 2014 · 1 comment

Comments

@dpcardoso
Copy link

I'm trying to send parameters through nested includes but occurs the following error when executing the task: Unexpected token J Use --force to continue.

index.html

@@include('/path/to/include/message.html', {"name": "Joe Bloggs"})

message.html

@@include('/path/to/include/message2.html', {"name": @@name})

message2.html

<p>Hello @@name!</p>
@alanshaw
Copy link
Owner

I'm guessing your include statement is being replaced with:

@@include('/path/to/include/message2.html', {"name": Joe Blogs})

Try surrounding with quotes:

@@include('/path/to/include/message2.html', {"name": "@@name"})

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

No branches or pull requests

2 participants