And if I understand you correctly, you want to put an svg file in /
pub/ *and* have it parameterized for weblocks actions?
(then, eg, a proxy like nginx could replace the /pub/foo.svg access
with something else for MSIE).

In that case, perhaps you could parameterize the svg file itself?

I use parameterized JS with html-template in preference to format's
~As

 (send-script
     (with-string-stream
       (html-template::fill-and-print-template
        "YAHOO.util.Event.on('<!-- tmpl_var map-button -->', 'click', function
() { dialog<!-- tmpl_var dialog-id -->.show();
          //insert_api_key(); //map_initialize(); //map_first_init();
   if (YAHOO.env.ua.opera && document.documentElement) {
        document.documentElement.style += ''; // Opera needs to force a
repaint
    } });"
        (list :dialog-id dialog-id :map-button map-button )
        :stream *stream*)
       ))

But this could easily be:

      (html-template::fill-and-print-template
        "some-svg-file.svg"
        (list :svg-param-1 xml-is-cool  :svg-param-2 (make-action-string-with-
args (f_% "do-stuff")) )
        :stream *weblocks-output-stream*))

where some-svg-file.svg:

<xml <supercool xml schema dtd>
        <!-- tmpl_var svg-param-1 -->
        <define javascript onclick="<!-- svg-param-2 --> >
        <circle> <square>
>

Of course, it'd bork an xml parser :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to