[PHPTAL] Structure in ${DATA}
Joshua Paine
lists at fairsky.us
Tue Jun 27 12:32:12 CEST 2006
may still work to do:
<script>
function yadayada()
{
....
<tal:block replace="structure:Data/value" />
....
}
</script>
If not, there's not much else you can do. TAL is poorly suited to
inlining javascript. If you have text data that you want the script to
access, I would encourage you to create (hidden, if necessary) HTML
elements with the content and have your script access them from the DOM.
You're probably going to stick the strings into HTML elements somewhere
anyway, so this way you can save the step.
--
Joshua Paine
Chief Tower Builder
LetterBlock Software
http://letterblock.com/
More information about the PHPTAL
mailing list