This is off the top of my head from the Jackrabbit/Sling BOF at ApacheCon:

It would be of great use to support another script delimiter in script
files. The current delimiters (<% and %>) does not play well with most
IDEs (at least the one I've tried). At least in IntelliJ IDEA, you can
mix XML/HTML with other languages (and have auto-completion and error
checking) only if it is delimited by a valid XML element.

We have at least two options here:

1. Use the standard HTML <script> element, and add a non-standard
attribute to specify that the script is to be executed server-side. In
ASP (if I remember correctly) you would use <script runat="server"
type="text/javascript"> to specify a block of server-side JavaScript.

2. Use a namespaced element, like <sling:javascript>.

The latter is perhaps the cleanest option, but it might cause trouble
for those who still insist on writing HTML (and not XHTML).

Any opinions?

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway
+47 21 531941, ext 2070

Reply via email to