template for generating the javascript files in bulk
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 11 May 2005 16:38:37 +0000 (16:38 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 11 May 2005 16:38:37 +0000 (16:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@704 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/templates/opac/logic/fastjs.ttk [new file with mode: 0644]

diff --git a/Open-ILS/src/templates/opac/logic/fastjs.ttk b/Open-ILS/src/templates/opac/logic/fastjs.ttk
new file mode 100644 (file)
index 0000000..31e7858
--- /dev/null
@@ -0,0 +1,14 @@
+[%-    
+       # gathers javascript files into a single blob of stripped text
+
+       FOR file IN files;
+               file = doc_root _ "/" _ file;
+               INCLUDE $file | 
+                       replace('(?gm:^\s*)','')                | 
+                       replace('(?gm:(?<!:|")\/\/.*$)','')     |
+                       replace('(?gm:^$)','')                  |
+                       replace('\t+',' ')                              |
+                       replace('\/\*[^\*]+.*?\*\/','') #removes javascript comments but not opensrf object hint comments
+                       ;
+       END;
+-%]