include Tricky?

From: Date: Mon, 03 Jun 2002 15:51:50 +0000
Subject: include Tricky?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4539@lists.php.net to get a copy of this message
I am trying to include a template (2.html) inside an existing template (1.html). But my question isn't that simple. It is to be included inside a javascript document.write() and since 2.html contains a multilined table, "document.write('" would need to be written in the prefix for each line, and "');" would need to be written in the suffix. And lastly, just to be safe, I'd like to put a replace in if possible. If someone were to put <td class='shit'> it would totally fuck up the document.write(), so I'd need comment out all single quotes (I'm using single quotes in my document.write() because they're less common than double). How can I do all this with only an {include}? I can't put the document.write()'s in 2.html because that template will also be used for my non-javascript version.

« previous php.smarty.general (#4539) next »