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
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
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.
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
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-
5 matches
Mail list logo