[whatwg] runat (or "server") attribute
Odin Hørthe Omdal
odinho at opera.com
Sun May 13 10:45:46 PDT 2012
>> Just use type="text/server-js"...
> Is that really a good idea? It seems odd to use a mime type for such a
I thought it was quite a nice idea.
Why would it not be? It's describing what's in the script tag, just like it's supposed to do. It's even a quite much used pattern for doing client side templates <script type="text/template"> on the web today.
Mime types are not magical any more. Before we could make our own text/x-whatever, but prefixes are not really any use. If you want something specific to your program you could always use something specific as prefix, -- but for this use case just doing text/server-js seems rather nice :-)
Odin Hørthe Omdal (odinho, Velmont)
More information about the whatwg