Skip to content

Argument of include can't have linebreak #62

Description

Now this is serious trouble for me.

What i mean is that:

@@include('templates/main_heading.tpl.html', {
    "subheader": "Subheader introduction",
})

pass ok

@@include('templates/main_heading.tpl.html', {
    "subheader": "
           Subheader introduction
           test test test
    ",
})

is not!
got:
Warning: Unexpected token
Use --force to continue.

This is superimportant, since you can do stuff like that even:

@@include('templates/main_heading.tpl.html', {
    "content": "
        <h3>thiis is my supadupa haeding</h3>
        <div class='p'>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis.</div>
    ",
})

And everything passes perfectly good except linebreaks :\

I really hope it's fixeable (seem to be regex issue that can be overcome)
If anybody can post solution immideately (before | if at all) it would be fixed with new release i would love to see it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions