Smarty to the limits! |
Site Admin
|
As far as I know people are using {literal} {/literal} blocks for holding javascript, like below:
|
||||||||||||||
|
|
yes, so Smarty dont start interpretting { within js code as own markers.
Now imagine I work with lots of javascript generated on the fly depending on values that are assigned to smarty. It is quite a job to escape { within js only when required. Cristian |
||||||||||||
|
Site Admin
|
Probably you're right and I just don't understand something, but could you just surround all the javascript code with literals, regardless they are created one the fly or not?
From my point, with [* *] you'll write not portable code and you youself won't be able to use other's code too. |
||||||||||||
|
|
when you add js in same template as the rest of the html code, and then suround the js with literal, all { within that code area is not interpreted by smarty at all.
Now, if I want to do something like
The above is not interpreted and you get js error I suppose. If I use [* *] the above is like
Simple, no? This have nothing to do with portability as you can set whatever markers you like in Smarty config file. |
||||||||||||||||
|
|
Any update thoughts on this?
|
||||||||||||
|
Site Admin
|
our highlighter can handle only pair of +one+ symbols as smarty code delimiters. It's a hardcoded limitation we can't get over in PhpED version 4.x.
Probably we'll do it for 5.0. |
||||||||||||
|
|
Hello Dmitri
Any updates on this issue ...was it addressed on PHP5? Regards, Christian |
||||||||||||
|
Site Admin
|
Sorry, no, this still is not implemented.
I added it to the plans for the next major release. |
||||||||||||
_________________ The PHP IDE team |
Smarty to the limits! |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by