2014-06-09 23:40:31 +04:00
|
|
|
Tag {ignore}
|
|
|
|
============
|
2013-02-08 14:23:10 +04:00
|
|
|
|
2014-06-09 23:40:31 +04:00
|
|
|
{ignore} tags allow a block of data to be taken literally.
|
|
|
|
This is typically used around Javascript or stylesheet blocks where {curly braces} would interfere with the template delimiter syntax.
|
|
|
|
Anything within {ignore}{/ignore} tags is not interpreted, but displayed as-is.
|
2013-02-08 14:23:10 +04:00
|
|
|
|
|
|
|
```smarty
|
|
|
|
{ignore}
|
|
|
|
var data = {"time": obj.ts};
|
2013-02-19 09:51:33 +04:00
|
|
|
{/ignore}
|
|
|
|
```
|
|
|
|
|
2014-06-09 23:40:31 +04:00
|
|
|
{ignore} tags are normally not necessary, as Fenom ignores delimiters that are surrounded by whitespace.
|
|
|
|
Be sure your javascript and CSS curly braces are surrounded by whitespace:
|
|
|
|
|
2013-02-19 09:51:33 +04:00
|
|
|
```smarty
|
|
|
|
var data = { "time": obj.ts };
|
2013-02-08 14:23:10 +04:00
|
|
|
```
|