perl-HTML page contsruction

Microsoft Windows vista home premium w/s...
November 13, 2009 at 23:34:13
Specs: Windows Vista
I have constructed a html page that is a generic blank layout which I propose to use through out the site. I would like to be able change the <title> href= . Using perl or python and a csv file which has in order the data that needs to be updated. I have tried regular expressions very varying degrees of success and frustration.
Here is a part of the html page in question - is it possible? - perl noob. I just need a push in the right direction.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>blank blank blank</title>

<link rel="STYLESHEET" type="text/css" href="../candy.css" title="blank">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<link rel="stylesheet" type="text/css" media="screen,projection" href="../../style.css">

<div class="mainmenu">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="762">

<table class="body" align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="762">
<td colspan="2">
<div class="nav">
<li class="li_nc">Home</li>
<li class="li_hc">Enrollment
<ul class="ul_ch">
<li class="li_nc">Strategic Plan</li>
<li class="li_nc">blank Information Booklet</li>
<li class="li_nc">mapsto blank</li>
<li class="li_nc">Photo
Virtual Tour

See More: perl-HTML page contsruction

Report •

November 15, 2009 at 09:07:50
Don't reinvent the wheel.

HTML::Template - Perl module to use HTML Templates from CGI scripts

Report •

November 15, 2009 at 14:05:31
This would mean that I would have to run apache and sql and perl etc.
I agree with you whole heartily- I was trying to avoid going down that track as I could solve this problem by implementing a cms system (plone or babelcon). This adds complexities to my problem. The pages I am doing are for a school. The website is preexisting and is written all in html. They wish for students to maintain it. I do not have access to the server side of things as this web host is government setup and is purely vanilla html allowed. Now I could setup an environment to run internal XAMPP or WAMPP and implement a cms system and then upload the site but I am not sure if that is possible. This all takes time to test. I just thought maybe there is a way with code.
Is there away by using a flat database to use Python to extract data and populate certain fields - such as headings and url links and the body of a html. I was thinking a long the lines of either having the students to fill out a excel spread sheet with the data and then turn that data into a csv and having python dissect the csv and populate the html code with the relevant data. Then magically producing a html page for uploading. Am I over estimating python capabilities?

Report •

November 15, 2009 at 19:58:07
You can do this in Python, Perl, PHP, VB, or just about any language you wish. It's up to you to decide.

No matter which language you use, you still need a web server such as apache or IIS

Implementing a cms system isn't going to allow you to avoid using a web server or a scripting/programming language so I'm not sure what you're referring to in that regard.

If you don't have access to the web server, what do you expect to accomplish?

Report •

Related Solutions

November 15, 2009 at 23:22:54
Thank you for your kind advise and I see your point and I am with you on this but my circumstances are a little bit unusual. I think I might of misrepresented the situation. The webserver I do have access to is limited to plain html. The host provider is setup that way to provide a very bare bones free html service for public educational services. All I have access to is a folder which I via ftp up load a static html page to. The schools are contracted to use this provider. The school wishes to kept there content up to date. No one has the time or knowledge to do the changes and if by chance they break something they can't repair it. I have been doing some reading with regards to Python and it seems to have the capability to concatenate strings and to split lines strings. But for the life of me I can not get the individual capabilities of Python to act as one program that can be implemented to do such a process. I have trawled tirelessly through google hoping to find a solution. When I do find a possible solution it seems the link is broken or the product has gone commercial etc. Check this article out Using Python to Generate HTML Pages by Richie Bielak. It goes some ways to solving my problem but I don't for the live of me understand how it is implemented.

Report •

Ask Question