[Greasemonkey] Long literal strings of html

Julien Couvreur julien.couvreur at gmail.com
Sat Apr 16 11:38:17 EDT 2005

On 4/13/05, Aaron Boodman <zboogs at gmail.com> wrote:
> Yes, this behavior should be considered "unfrozen" for the immediate future.

Aaron, even if this behavior (GM adding a script page with the user
script inside the target page) changes, GM will still have access to
the raw script text.
Would you mind if I looked into implementing a GM_getScriptData(name) function?

The code/functionality would be like Mihai's prototype a couple of
emails back in this thread.
My long term goal is to create a templating mechanism like JSP, ASP or
PHP, but for creating client-side chunks of HTML really easily (no DOM
manipulation). It could be called JHP: Javascript Hypertext
Preprocessor (any other name ideas?), and it would allow to mix HTML
and JS (loop code, print runtime variable,...) using the <@, <@= and
@> tags like ASP.

What do you think?

More information about the Greasemonkey mailing list