Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Chunking HTML to database and back

by danmcb (Monk)
on Aug 24, 2005 at 18:35 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found