evolution-cms / evolution

Welcome to the new evolution of MODX Evolution!
GNU General Public License v3.0
261 stars 95 forks source link

Display EVO tags on page #116

Closed yama closed 6 years ago

yama commented 7 years ago
\[\[Snippet call\]\]
\[\*Content tag\*\]
\{\{Chunk\}\}

Write tags with escaping backslashes. Then we can display the tag as it is. It's convenient for making EVO documents. ok?

yama commented 7 years ago

https://www.smarty.net/docsv2/en/language.function.literal.tpl Other way

<@LITERAL>
[[Snippet call]]
[*content tags*]
{{Chunk}}
<@ENDLITERAL>
yama commented 7 years ago

https://vuejs.org/v2/guide/

<@LITERAL>
<div id="app">
  {{ message }}
</div>
<@ENDLITERAL>

Can solve batting of vue.js and chunk

modxuser commented 7 years ago

What's the point @yama ?

You can display Evo tags anyway - I re-built the English documentation completely and didn't have any problems in displaying tags.

Simply use the character entity - example here

Another example is the actual Evo Tags page

fourroses666 commented 7 years ago

I like the second one yama. This way you just need to wrap it :-)

64j commented 7 years ago

@yama And what if use this syntax?


<evo:if $id = 1 >
  ...
  <evo:elseif $id >5 >
  ...
  <evo:else>
  ...
</evo:if>

or

<evo:if cond="$id = 1">
  ...
  <evo:elseif cond="$id >5">
  ...
  <evo:else>
  ...
</evo:if>

 or

<evo:literal>
  ...
</evo:literal>

or

<e:if > => <evo:if >
yama commented 7 years ago

Nice idea, thanks!

64j commented 7 years ago

codemirror autoformat code))

Ctr+A and Shift+Tab

image

image

yama commented 7 years ago

thanks more hint

yama commented 7 years ago

@modxuser Thanks for reply. I think that it is difficult to memorize numbers such as &#91;. If possible, simple way is better. It is also necessary to write Smarty document, code of vue.js and so on.

64j commented 7 years ago

@yama It would be nice if you make an event for the mergeConditionalTagsContent function, for custom plugins.

yama commented 7 years ago

Thanks nice idea @64j , For example, we can make the following functions for only myrself.

<@HTMLSPECIALCHARS>
This is html tags tutorial
<abc><def><ghi><etc>
<@ENDHTMLSPECIALCHARS>