2011/9/24 Bartosz Dziewoński <matma....@gmail.com>: > A comment after some time: I'd appreciate it more if I could just have > one "external" file with all the templates, and one with the Camping > code, and I could "link in" the templates to parse using this > mechanism.
This works, although it's kinda hacky: eval('Camping.goes :Foo', nil, 'templates.rb') On Fri, Aug 26, 2011 at 16:14, Dave Everitt <dever...@innotts.co.uk> wrote: > Since no-one has replied, for what it's worth (as a very amateur camper), > I've always been happy with simple regular Markaby views and the v2.1 > options for external templates. Also, my modest one-file apps have their CSS > after __END__. In any sizeable app, you'd probably want to have separate > templates for easier maintenance (since - if inline - their code is going to > add more than a few lines and break the one-file advantages), so the > question is: will anyone use/want inline templates? - DaveE I've committed another patch (8b6fee67). Now you can serve static "files" too: __END__ @@ /style.css * { margin: 0; padding: 0; } It also sets the correct MIME type. The only thing I worry about now is that it's taken a lot of bytes. We're currently at 3976 (97%) bytes. _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list