Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Chunking HTML to database and back

by danmcb (Monk)
on Aug 24, 2005 at 18:35 UTC ( #486328=perlquestion: print w/replies, xml ) Need Help??
danmcb has asked for the wisdom of the Perl Monks concerning the following question:

I have a project which involves some HTML pages that need to be translated into multiple langauges. The project is Perl CGI built around FastTemplate and mysql.

What I would like is this:

  • get a static page broken up, replace text with tags, put tags in db
  • make html forms that offer the text blocks (say between <p> tags up for translation.
  • the resulting content can then be either generated dynamically from teh db, or regenerate static pages

Doesn't actually sound too hard to code, but it's one of those things that should really exist already ... of course with nice utf8 froms and everything ...

any pointers as to the closest match that is already available out there?

2005-08-29 Retitled by Arunbear, as per Monastery guidelines
Original title: '!$wheel_>reinvent()'

Replies are listed 'Best First'.
Re: Chunking HTML to database and back
by fokat (Deacon) on Aug 25, 2005 at 00:44 UTC

    Dear danmcb

    I would look at using Catalyst for generating the application(s) and the interface to the underlying database, Template Toolkit for the presentation.

    There are modules that produce a CRUD with Catalyst with very little code, and that can be easily customized with TT to suit your need.

    If FastTemplate is a requirement, likely there is a View module for Catalyst that supports this too.

    Best regards

    -lem, but some call me fokat

      BTW, what is a CRUD?

      Thank you, lem/fokat ... I will definitely take a look.

      I went for FastTemplate for certain parts of the site that I expect to get > 90% of site traffic, so they are optimised for speed. I expect those scripts to end up under mod_perl before long. But the part I need the translation aids for are static pages and I could happily use another system there.

      so many CPAN modules, so litle time ...!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://486328]
Approved by lidden
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2018-06-22 05:59 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (121 votes). Check out past polls.