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.

So further feature-creep is to be avoided. I'm also happy calling stylesheets within Markaby:
  head do
    title 'My Blog'
    link :rel => 'stylesheet', :type => 'text/css',
    :href => '/styles.css', :media => 'screen'
  end

DaveE

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to