I'm wondering if anyone knows of any good tutorials on the web that
describes how to properly integrate HTML in CherryPy code. As I write
my web application I obviously need to create a header and a 'body'
with HTML code. I haven't found any good documents online that
describes how to go about doing this.
Also, does anyone have any recommendations on a good 'beginner' book
for CherryPy? I'm very familiar with Python but am ramping up (slowly)
with CherryPy and could use a good read. The documentation / tutorial
on the CherryPy page was lacking a bit.
Thanks!
- james
So far as I know, CherryPy Essentials (http://www.cherrypyessentials.com/
) is the only book out there...
Yours,
Eric
I thought that Sylvain Hellegouarch's _CherryPy Essentials_ was quite
good.
http://www.packtpub.com/CherryPy/book
I especially like the chapters on web services and AJAX. I'd worked on
projects that did some of this stuff before, but his examples showed me
lots of things that I could have done better. If you are interested in
building websites with CherryPy and you aren't sure where to start, you
should start with _CherryPy Essentials_.
Jason
> I agree that Sylvain Hellegouarch's book on CherryPy is good. His
> example in the book uses the Kid templating engine.
The nice thing about Sylvain's book is that he shows you how easy it is
to mix and match components in CherryPy. For example, I have quite a
bit of experience with Zope Page Templates, and I didn't really want to
learn the ins and outs of another templating language just because I got
tired of trying to fit Zope into my head. After reading Sylvain's Kid
examples I was able to integrate SimpleTAL in a similar manner.
In fact, choosing which templating language to use is much more
difficult than integrating your choice into CherryPy. I swear someone
creates a new templating language for Python every 14 minutes.
Jason
Feel free to write that up on http://tools.cherrypy.org/wiki. :)
> In fact, choosing which templating language to use is much more
> difficult than integrating your choice into CherryPy. I swear someone
> creates a new templating language for Python every 14 minutes.
Amen. And ugh.
Robert Brewer
fuma...@aminus.org
Is there a "best" templating system? Or is it a simple balance of
complexity vs flexibility and power?
Thanks!
--
"Do not meddle in the affairs of wizards, for they are subtle and
quick to anger."
-Tolkien
I am new to cherrypy and python in general and after a little research I
decided to use genshi. I think that the biggest impact on my decision was
that there is excellent tutorial abount cherrypy and genshi.
Regards,
Łukasz
Is there a "best" templating system? Or is it a simple balance of complexity vs flexibility and power?
-- Tim Roberts, ti...@probo.com Providenza & Boekelheide, Inc.
Hello!
I think, Cheetah is a very good choice! Because, it's simple to use for
simple tasks. And it's mighty enough to do powerful tasks. And your
template don´t look like a brace-storm. ;-)
(german) http://halvar.at/python/cherrypy_cheetah/
Regards,
Gerold
:-)
--
________________________________________________________________________
Gerold Penz - bcom - Programmierung
http://halvar.at | http://sw3.at | http://bcom.at
Wissen hat eine wunderbare Eigenschaft:
Es verdoppelt sich, wenn man es teilt.
> Jason Earl wrote:
>> jonathansamuel <jonatha...@yahoo.com> writes:
>>
>> > I agree that Sylvain Hellegouarch's book on CherryPy is good. His
>> > example in the book uses the Kid templating engine.
>>
>> The nice thing about Sylvain's book is that he shows you how easy it
> is
>> to mix and match components in CherryPy. For example, I have quite a
>> bit of experience with Zope Page Templates, and I didn't really want
> to
>> learn the ins and outs of another templating language just because I
>> got tired of trying to fit Zope into my head. After reading Sylvain's
>> Kid examples I was able to integrate SimpleTAL in a similar manner.
>
> Feel free to write that up on http://tools.cherrypy.org/wiki. :)
I actually have a rough draft started. I just need to finish it. Part
of the problem is that while what I have got now is good enough for me.
It's not quite to the point where it is good enough for the rest of
y'all.
When I get to the point where my solution is as comprehensive as the
Jinja example, then I'll share :).
Jason
- j
--