t;
> > 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 (http://gems.ju
stall camping --source gems.judofyr.net` for a newer (pre-release)
> version.
> -Original Message-----
> Re: Feature: Inline templates?
> From: *gurugeek *
> To: camping-list@rubyforge.org
> Sunday, August 12, 2012 at 5:15PM
>
>
> Hello I was searching inline templa
emented 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 Mess
version of Camping has it. Try `gem
> install camping --source gems.judofyr.net (http://gems.judofyr.net)` for a
> newer (pre-release) version.
> -Original Message-
> Re: Feature: Inline templates? From: gurugeek (mailto:gurugeek...@gmail.com)>
> To: camping-li
al Message-
Re: Feature: Inline templates?
From: gurugeek <gurugeek...@gmail.com>
To: camping-list@rubyforge.org
Sunday, August 12, 2012 at 5:15PM
Hello I was searching inline templates on camping an
Hello I was searching inline templates on camping and found this old
topic on the mailing list with the example from Magnus. I think it
looks great and could be useful but I assume this was not implemented.
Any plan to add this ? :-)
Best Regards
David
Another feature! Inline templates
On Fri, Aug 26, 2011 at 16:14, Dave Everitt
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 a
2011/9/24 Bartosz Dziewoński :
> 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(
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.
-- Matma Rex
___
Camping-list mailing lis
I am a bit ambivalent about the new feature. One hand it's kind of cool.
But on the other it's something that most experienced campers probably
won't use on moderate size apps. And for new campers it's one more
syntactic sugar to learn and remember.
On 8/26/2011 10:58 AM, Magnus Holm wrote:
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
>
>
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
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 e
ly 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
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
15 matches
Mail list logo