Questions tagged [mason]

HTML::Mason, or Mason for short, is a Perl-based templating system for generating dynamic HTML or other content.

HTML::Mason or it's successor Mason 2 (simply called Mason), is a Perl-based templating system for generating HTML or other content.

Its features make it a suitable backend for high load sites serving dynamic content, such as online newspapers or database driven e-commerce sites.

Official home page: http://www.masonhq.com/

Mason book: https://masonbook.houseabsolute.com/

143 questions
-1
votes
1 answer

What’s the easiest way to install a mason package?

I want to install a mason package but I couldn't find how to do it.
-1
votes
1 answer

understanding mason filter component

I am new to mason. I would like to know what the following piece of code does : <%filter> s/(\w+)/\U$1/g I understand that a <%filter> block is called after a component has finished running. It is given the entire output of the…
newbie
  • 1,049
  • 5
  • 15
  • 29
-1
votes
1 answer

Get result for Images

I am making the HTTP GET result for the image content from the server, initially I was getting the result as a garbled character set. {�t�� �J��JQQT@@�ҥ�*((��^��{BB �� �^�F&��o���3s&�`@xf�~Cf��u����_�_^ dee��g�;/�������?r��Χ�3�@v�1p�|�=�…
Aman Agarwal
  • 727
  • 6
  • 15
-1
votes
1 answer

Embed Javascript into HTML: Mason for Perl

Is it possible to embed Javascript into HTML: Mason for Perl? Thank you <%init> #do some perl code here #do some perl code here I have a web service…
jas7
  • 2,893
  • 6
  • 23
  • 36
-1
votes
1 answer

IP address of form submitter (remote IP address) using Perl and HTML::Mason

I am using HTML::Mason to serve a web page containing a form. When the form is filled and submitted, I want to know the IP address of the remote client. I tried printing $r->headers_in but I get Apache2::Request=SCALAR(0x1961ba0)->headers_in am I…
mamesaye
  • 2,033
  • 2
  • 32
  • 49
-1
votes
4 answers

Switch-Case syntax in Mason

I am looking for the switch-case syntax in Mason, but haven't been able to find one. Could someone please assist with a sample here? Thanks in advance.
Saket
  • 45,521
  • 12
  • 59
  • 79
-2
votes
1 answer

How to install Mason for Perl in Windows?

I want to run Mason on my Windows system . I have Active Perl 5.16 and Apache 2.2 in my system. Perl programs are working fine and I am able to run Perl CGI Script on Apache as well. But I am a beginner to Mason and want to run a simple program…
-2
votes
3 answers

Perl Mason get value of a checkbox

How do i get the value of a checkbox and put it in a variable for insertion in DB? $request->param(cb) is not getting the value the checkbox is in a mason2 component(.mc) and the value of the checkbox will be pass to another component. so i have…
mamesaye
  • 2,033
  • 2
  • 32
  • 49
1 2 3
9
10