loading plain files
"Luther Baker" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
For simplicity's sake, I would like to use freemarker to load both *.ftl files and plain html/js/css files. IE: I am distributing a library (JAR) and include a few text files in the classpath (src/main/resources per maven). When a request comes into my framework, I modify the URL path and look for a *.ftl file. If I find it, great, if I don't - I would like to look up the RAW file and simply return it via freemarker unprocessed. a) Is that safe to do? b) Is there a way I can tell freemarker 'load these .css and .js files from the special FTL paths" but do not waste your time trying to interpolate them. Just render them as is? Thanks, -Luther ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user