I get an compile error when I try to use $story or $element in a Mason template <%once> block. What gives?
To check the syntax of a Mason template as you develop it, Bricolage creates a Mason interpreter and compiles the template. Because <%once> blocks are designed to execute only once, Mason actually executes them during the compile. Of course, there is no $story or $element object when you’re editing a template, only when you’re publishing or previewing a story.
Related Questions
- When I try to generate a high-quality plot, TSP gives me an error message saying "Hardcopy graphics driver file not found in TSP44 or current directory" What file is this and where I can get it?
- I uploaded my index.html file, and I can see it in my FTP list, but the web site gives a "404 Not Found" error when I try to load it. Whats wrong?
- When I try to add ingredients to a new recipe, I get "Run-time Error 30009 – Invalid Row Number". What gives?