Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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()'

Comment on Chunking HTML to database and back
Download Code
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

      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 ...!

      BTW, what is a CRUD?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://486328]
Approved by lidden
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-09-01 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls