-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mason List wrote:
> I have a header.mas that looks for a jsHEAD attribute so I can put
> <script> sections into the <head> section.  Unfortunately, I'm doing
> this:
> 
> <%attr>
>  jsHEAD => q{<script>
> ...more
> ...and more
> </script>}
> </%attr>
> 
> Well that doesn't work because attrs must be a single line.  So what
> can I do?  Should I use a <%once> ?
> 
> Thanks for the advice!
> 
> Ryan
> 
> 

Hello.
In this case OBJECT-ORIENTED TECHNIQUES could be used. I usually do like this:

/autohandler
<%method jsHEAD>
%# default or empty
<%/method>


try to use this method in header.mas
/header.mas
<& SELF:jsHEAD, %ARGS &>

and replace method jsHEAD in other files
for example:
/products/autohandler
<%method jsHEAD>
<script>
......
......
</script>
</%method>

Best regards
Grebenschikov Alexey.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEu9pI/5nu1ZLzFxwRAts1AJ44aBA8aE0WcaoKPCou7F5RPYVpggCfbsBn
0ImIh+I2uSHbEic/V0f7SyU=
=tEwa
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to