Tell smarty to print block as is

Posted by Juriy on Stack Overflow See other posts from Stack Overflow or by Juriy
Published on 2010-06-11T11:58:44Z Indexed on 2010/06/11 12:03 UTC
Read the original article Hit count: 245

Filed under:
|
|

Hello guys,

I need to inline some javascript code into the Smarty template files and these {ldelim} {rdelim} things are killing me. Is there a way to tell smarty to ignore the markup for a block and just output it as is? Something similar to CDATA blocks in the xml?

Just in case: here is how simple javascript looks now:

$(function() {ldelim}
        $( "#slides" ).accessNews({ldelim}
            speed :  "{$speed}",
            slideBy : 1
        {rdelim});    
{rdelim});

creepy heh?

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript