[wp-trac] [WordPress Trac] #22344: Fatal error with asp_tags on
WordPress Trac
noreply at wordpress.org
Tue Nov 6 00:40:44 UTC 2012
#22344: Fatal error with asp_tags on
--------------------------+--------------------
Reporter: knutsp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: blocker | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by scribu):
An actual Mustache-inspired syntax would be something like this:
{{{
{{{a}}} - interpolating
{{ a }} - escaping
<# a #> - execution
}}}
No curly braces for executing because `{{ if (...) { } }}` is confusing
and Mustache (wisely IMO) doesn't support it anyway.
A counter argument would be that underscore doesn't support the majority
of Mustache features, like blocks, comments etc.
I still think the `{{escaped}}` and `{{{unescaped}}}` syntax has merit,
since it encourages escaping by default.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22344#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list