Perl: collection of website templates

Have any projects that have a collection of perl web templates? Like on github or source forge?

There are a few HTML / CSS templates out there, but are there any open source collections that already have a framework already configured for different genres / site functionalities (possibly using HTML :: Template)?

It would be nice to see the pre-built wireframes, some of which use pagination, some of which have database connections, custom logins, configured.

+3


source to share


1 answer


In the Perl world, what we call a "template" is more like "filling in the blanks to create this particular page". It does not create or define functionality at the program level, it simply presents the functionality of the underlying code to the user. for example, the template displays controls that the user can use to navigate to other pages, but does not perform pagination. It displays username and password input fields, but it doesn't know anything about databases, sessions, or credential validation. Etc.

It seems to me that you are looking more at what the Perl community calls "web application framework", and there are several of them. Now three big Dancer , Moholichny , and the Catalyst .



If you really want to combine your templates and your functionality, I believe this is how Mason works, but I would recommend that you take a look at the other frameworks first and try building an object with a clear separation of concerns - the framework code only provides functionality; UI-only templates - before moving on to mixing functional code into the old-school PHP presentation layer.

+2


source







All Articles