Re: Feature: Inline templates?

2012-08-15 Thread Jenna Fox
Mmm so it is! Nice! — Jenna On Thursday, 16 August 2012 at 1:10 AM, Magnus Holm wrote: > It's simpler. The alternative would be something like: > > module App::Views > Index = Tilt['slim'].new { <<-EOF } > html > head > body== yield > EOF > end > > module App::Controllers > def index > View

Re: Feature: Inline templates?

2012-08-15 Thread gurugeek
thank you Magnus, great feature ! On Wed, Aug 15, 2012 at 10:18 AM, wrote: > It's been implemented here: > https://github.com/camping/camping/commit/407e2ddd441f438722828dc77d9094e0dea66143, > but I don't think the current released version of Camping has it. Try `gem > install camping --source g

Re: Feature: Inline templates?

2012-08-15 Thread Magnus Holm
It's simpler. The alternative would be something like: module App::Views Index = Tilt['slim'].new { <<-EOF } html head body== yield EOF end module App::Controllers def index Views::Index.render(self) end end This can also serve static files with correct MIME-type: __END__ /style.

Re: Feature: Inline templates?

2012-08-15 Thread Jenna Fox
What makes this better than a here doc? — Jenna On Wednesday, 15 August 2012 at 6:18 PM, judo...@gmail.com wrote: > It's been implemented here: > https://github.com/camping/camping/commit/407e2ddd441f438722828dc77d9094e0dea66143, > but I don't think the current released version of Camping h

Re: Feature: Inline templates?

2012-08-15 Thread judofyr
It's been implemented here: https://github.com/camping/camping/commit/407e2ddd441f438722828dc77d9094e0dea66143, but I don't think the current released version of Camping has it. Try `gem install camping --source gems.judofyr.net` for a newer (pre-release) version. -Original Message-