This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.txt | Thu May 21 14:21:34 -0700 2009 | |
| |
parseScripts.js | Thu May 21 13:47:54 -0700 2009 |
README.txt
parseScripts is copyright (c) James Padolsey (http://james.padolsey.com) 'parseScripts' is a simple abstraction you can use the simplify the process of enhancing JavaScript syntax as you so desire. To use it, markup your custom content/code in a SCRIPT element; make sure to give it a custom type attribute, e.g. <script type="mycoolstuff">...</script> Then, at the end of your document (or on doc.ready) make a call to parseScripts in the following way: parseScripts('mycoolstuff', function(unparsed){ // Valid JavaScript must be returned doStuffToParseMyCustomLanguage(); return parsed; }); First argument can be a string or RegExp, the type will be tested against this to target specific SCRIPT elements within the document. The second argument is a function to which the unprocessed textual content of the SCRIPT element will be passed; it's expected that valid JavaScript will be returned from the function... -- More info: Watch: JAMES.PADOLSEY.COM







