Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Triple braces and pattern parameters, braces appearing #178

Closed
bradfrost opened this issue Apr 17, 2014 · 3 comments
Closed

Triple braces and pattern parameters, braces appearing #178

bradfrost opened this issue Apr 17, 2014 · 3 comments
Assignees
Labels

Comments

@bradfrost
Copy link
Member

I'm incorporating pattern parameters into my patterns, like so:

{{> molecules-field-note(fieldnote: "Some text with<a href=\"#\">a link</a>") }}

The pattern itself looks like this:

<em class="field-note">{{{ fieldnote }}}</em>

And the output ends up coming out like this:

{Some text with a link}

Expected behavior: braces would not appear wrapped around the output text.

@bradfrost bradfrost added the bug label Apr 17, 2014
@dmolsen
Copy link
Member

dmolsen commented Apr 17, 2014

@bradfrost -

Just to be clear, there's no notion of "escaped" vs. "not escaped" content in pattern parameters. They're not actually using Mustache. That said, I'll make sure PL checks for vars with triple braces too.

@dmolsen dmolsen self-assigned this Apr 17, 2014
@dmolsen
Copy link
Member

dmolsen commented Apr 19, 2014

@bradfrost -

Pattern parameters now properly respect "escaped" vs. "not escaped" Mustache tags. In dev. Let me know if it works for you.

@bradfrost
Copy link
Member Author

Hooray! This did the trick, and now the braces aren't being printed. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants