When I use the server module, I cannot figure out how to just get *.html files copied into the output, and *.jade files compiled into *.html files in the corresponding output folder. The module seems to assume I want to serve the final application this way, but I'm using the module for live reload support and as a convenient way to serve separate projects as if they are at the server root URI (as hybrid apps need to be).
Is there a simple way to do this that I'm missing? I admit, the concept of server-side "views" is a bit alien to my experience as a front-end developer. How are these not assuming the app will be served with mimosa?
Thanks for any help. Mimosa seems awesome so far, just wish I could resolve this basic question.
I tried the server-compile-template module (sorry if misremembering name, don't have thread in front of me). One problem is that I *would* like to have filesystem watching and copying changes to .html or .jade files as with any other resources. Having to manually rebuild on these changes while other changes are automatic is annoying. Another problem is that this also means when I am running watch -s, I am not being served these files even if I manually rebuilt them -- I'm being served the dynamic pages from the last run.
These problems are annoying enough that I'm not using the server, which means no live reload. I also found a different module -- client-jade-static -- that is more concisely doing what I need.
My use case is that I'm building hybrid mobile apps. As such, the backend is not tightly coupled, and in practice will either be a BaaS like parse.com, or no backend. Either way, all such apps require HTML pages. Having live reload is a HUGE advantage in some parts of this development, so it's frustrating not to have a good setup where I can watch and see updates but not have to manually rebuild the site on every edit to HTML/Jade/CoffeeScript. Is there some way mimosa could change to accommodate this?
For my own curiosity, having been away from the web stack for several years, is it really so ubiquitous that people use node/express as the backend that mimosa's behavior here makes sense? Even for more "traditional" web apps, for several reasons, using node for the backend is not my choice, but having it as a dev server with things like live-reload is a big plus.
Mimosa is pretty awesome still. I'm getting familiar with it. As a side point: I didn't realize that the "Config" section of the main site was the missing manual until I found it. Maybe this should be more prominent as next steps from Getting Started? Lots of great info there, just only found it after I'd spent a fair amount of time trying to make sense of the sample config file, which is unformatted so hard to see how settings are nested in places. Having plain English description of technology often hugely reduces the initial learning curve.
At any rate, I think these are minor annoyances. The static jade modules help. Thanks for the responses.