views:

171

answers:

4

I really like Template Toolkit and like how it works with Catalyst, but I would like more 'web advanced' toolkit.

It could be just a package of *.tt files for Web objects like these: Selector, Selector_DateTime, Menu, Data_Table...

Is there something like that somewhere on the Web? If not, why not?

+1  A: 

Look at Template::Plugin:: modules and especially at Template::Plugin::CGI .

Alexandr Ciornii
I think he wants higher level things that are pre-made.
brian d foy
Yes, I wanted higher level things, but I didn't know that module CGI could make the low level things... I think it's a good start anyway to make higher level things. +1
sebthebert
A: 

Because Perl ain't PHP?

innaM
+4  A: 

Are you looking to make your own templates, or use ones that were already developed by someone else? You can make your own components just fine with Template Toolkit, and you can easily insert other widgets you find into Template files.

I don't know of any ready-made packages that you can just download for common things that show up on web pages. It would be nice if someone spent the time to create some and make them available. I think people tend to make their own stuff that is exactly right for their problem, isn't necessarily refactored or well-architected, or a bit kludgey and embarrassing.

I have my own bits, such as templates for a country or state selection menu, but I also have to have some code to set the default. I don't particularly want to spend the time to make that useful to a general audience.

I understand what you want, agree with the value of it, and hope someone with the talent, time, and motivation runs with the idea. :)

brian d foy
Yes, that's exactly what I would like to say, thanks Brian ! :)Well, I don't really have talent, probably not enough time, but BIG motivation ! I will try to make something for the next weeks...
sebthebert
+1  A: 

For form related stuff then have a look at HTML::FormHandler.

Its new but looks to be a promising module which integrates well with TT & DBIC.


For something far more encompassing then check out Reaction.

From its overview doc....

Reaction is a Catalyst extension providing you with:

  • Model mutations abstracted into Action objects.
  • Reflection to generate interface models using the Action objects from a DBIx::Class schema.
  • An abstract UI expression system based on view, skin, rendering context, widget and layout set.
  • Stylable via skins. Parts of the skins can be extended and flexibly from large down to very small parts.
  • Full separation of interface rendering structure and templating, making re-usable extensions even easier.

Read the UI, Viewport & Widget docs and see if it tickles your fancy ;-)

/I3az/

draegtun
I didn't know Reaction. It seems to be really powerful, but probably too complicated for my needs and the time I have... +1
sebthebert
draegtun