Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Mason

Status
Not open for further replies.

chrismassey

Programmer
Joined
Aug 24, 2007
Messages
264
Location
GB
I have read an article on using Mason however it doesn't make the basics clear. Basically it says you can simply open a HTML page, insert the Mason code and it should work fine. However I thought Mason is a perl module and that you would need to use Mason i.e. Use HTML:Mason

What I really want to know is if you can simply insert mason into HTML without declaring your using Mason? If not then I would assume you would need to create a new .pl file, then declare use of HTML:Mason and then use a print HTML tag and insert the HTML with the Mason included.

I hope this makes some sense. If someone could just maybe give me an example of a mason page or something. I'm fed up of using HTML:Template.

Thanks, Chris
 
well the first google result for me threw up
Code:
[URL unfurl="true"]http://www.masonhq.com/[/URL]
where they say
Mason is a powerful Perl-based web site development and delivery engine. With Mason you can embed Perl code in your HTML and construct pages from shared, reusable components.
Mason solves the common problems of site development: caching, debugging, templating, maintaining development and production sites, and more.

Mason is 100% free and open source. Although it can be used from CGI or even stand-alone, it is optimally designed for use with two other open source technologies: mod_perl and Apache.
So I would have to assume that it enables scripting like ASP and is then interpreted by the way you set up the server.

No different than the way I've set all .HTML to be parsed as though they are .SHTM , to activate the SSI (Server Side Include) parser.

Well that's how I read it

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top