Re: Feature: Inline templates?
I was fine with Markaby. On Thu, Aug 25, 2011 at 11:04 AM, Magnus Holm wrote: > Another feature! Inline templates: > > module App::Controllers >get '/' do > @title = "My Perfect App" > render :index >end > end > > __END__ > @@ index.erb > Welcome to <%= @title %> > > What'd you think? Keep or throw away? It costs us 184 bytes at the moment. > > // Magnus Holm > ___ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Feature: Inline templates?
On Aug 26, 2011 6:42 PM, "Bartosz Dziewoński" wrote: > > If this only supports Erb, then we should throw it away as fast as > possible ;) I see no reason why would anyone want to use something > *that* dinosauric in a new project. > > If it also supports (or can support), say, Haml, then I see how it > could be useful (although nearly all of my Camping projects end up > split between many files anyway ;) ). Personally I love Markaby, but > for many people it might look weird, and I can understand why. > > -- Matma Rex It supports everything that Tilt supports. See http://github.com/rtomayko/tilt. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Feature: Inline templates?
If this only supports Erb, then we should throw it away as fast as possible ;) I see no reason why would anyone want to use something *that* dinosauric in a new project. If it also supports (or can support), say, Haml, then I see how it could be useful (although nearly all of my Camping projects end up split between many files anyway ;) ). Personally I love Markaby, but for many people it might look weird, and I can understand why. -- Matma Rex ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Feature: Inline templates?
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 On 25 Aug 2011, at 19:04, Magnus Holm wrote: Another feature! Inline templates: module App::Controllers get '/' do @title = "My Perfect App" render :index end end __END__ @@ index.erb Welcome to <%= @title %> What'd you think? Keep or throw away? It costs us 184 bytes at the moment. // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list