I don't know if it's a completely dead proposal, but I would like to
give it a second life. The use case is not just for HTML templating,
which I think should be done with DOM rather than by string
manipulation, but for programming languages.
WebGL shader language is one of the examples. Many examples on the web
use <script> elements in HTML to write a shader which then is scraped
by JS with getElementById("some-shader").textContent etc. for use in
the script. I think this is very silly because shaders should belong
to the Controller, not the View. Now that Khronos is looking to
standardize WebCL as well, so there will be even more demand for Here
Documents.
What do you think?
A.TAKAYAMA
Hi,
Here Document, or triple-quote string literal, was a proposed feature
for ES4, which doesn't seem to be considered for Harmony/Strawman.
http://wiki.ecmascript.org/doku.php?id=proposals:triple_quotes
https://mail.mozilla.org/htdig/es-discuss/2008-March/thread.html#5548
I don't know if it's a completely dead proposal, but I would like to
give it a second life. The use case is not just for HTML templating,
which I think should be done with DOM rather than by string
manipulation, but for programming languages.
WebGL shader language is one of the examples. Many examples on the web
use <script> elements in HTML to write a shader which then is scraped
by JS with getElementById("some-shader").textContent etc. for use in
the script. I think this is very silly because shaders should belong
to the Controller, not the View. Now that Khronos is looking to
standardize WebCL as well, so there will be even more demand for Here
Documents.
What do you think?
A.TAKAYAMA
Here Document, or triple-quote string literal, was a proposed feature for ES4, which doesn't seem to be considered for Harmony/Strawman.
proposals:triple_quotes, mail.mozilla.org/htdig/es-discuss/2008-March/thread.html#5548
I don't know if it's a completely dead proposal, but I would like to give it a second life. The use case is not just for HTML templating, which I think should be done with DOM rather than by string manipulation, but for programming languages.
WebGL shader language is one of the examples. Many examples on the web use <script> elements in HTML to write a shader which then is scraped
by JS with getElementById("some-shader").textContent etc. for use in the script. I think this is very silly because shaders should belong to the Controller, not the View. Now that Khronos is looking to standardize WebCL as well, so there will be even more demand for Here Documents.
What do you think?
A.TAKAYAMA