I’m confused about static resources. According to
http://rtfm.modx.com/display/revolution20/Static+Resource They behave exactly like a Document (standard Resource). Content within a Static Resource is parsed and displayed in the exact same way as a Document.
Reading this, it sounds like a way of storing resources outside of the DB but parsing their content at runtime.
One convention I always follow is to put all javascript in a file called global.js. After adding this file as a static resource, I created a chunk called TEST containing a string of text, "testing 1 2 3" and added an alert to global.js
The alert that pops up says "[[$TEST]]" so the file is not being parsed. What does TFM mean when it says "Content within a Static Resource is parsed and displayed in the exact same way as a Document" ?
Thanks.