[Mason] Change % %

2012-03-13 Thread Jean-Michel Caricand
Hello,

Actually, I use HTML::Mason 1.48.

My question is on the syntax of Mason : how to change % $myvar % for 
[% $myvar %]  ?

Thanks,

Jean-Michel

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users


Re: [Mason] Change % %

2012-03-13 Thread Jérôme Étévé
On 13 March 2012 14:27, Jean-Michel Caricand
jean-michel.caric...@laposte.net wrote:
 Hello,

 Actually, I use HTML::Mason 1.48.

 My question is on the syntax of Mason : how to change % $myvar % for
 [% $myvar %]  ?

My wild guess is 'You need to Subclass the lexer'.

http://search.cpan.org/~drolsky/HTML-Mason-1.48/lib/HTML/Mason/Subclassing.pod#What_to_Subclass?

Why would you want to do that?

Cheers.

J.

 Thanks,

 Jean-Michel

 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 Mason-users mailing list
 Mason-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mason-users



-- 
Jerome Eteve.

http://sigstp.blogspot.com/
http://twitter.com/jeteve

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users


Re: [Mason] Change % %

2012-03-13 Thread Jon Lang
I'm not sure why someone would want to use [% %] instead of % %; but I
for one wouldn't mind being able to use ?perl ? (or, more generally, ?*
something* ?, where *something* can be specified by means of a Notation
in the DTD's internal set) instead of % %.  Admittedly, it's a few more
characters to type; but it conforms to the standard xml syntax for
Processing Instructions, which appeals to the purist in me.

Of course, I'm not really talking Mason anymore at that point, since
there's more to Mason than just embedding perl code in an HTML document.
So, yeah.  :)

-- 
Jonathan Dataweaver Lang
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users


Re: [Mason] Change % %

2012-03-13 Thread Jean-Michel Caricand

Le 13/03/2012 17:26, Jon Lang a écrit :
I'm not sure why someone would want to use [% %] instead of % %; but 
I for one wouldn't mind being able to use ?perl ? (or, more 
generally, ?/_something_/ ?, where _/something/_ can be specified 
by means of a Notation in the DTD's internal set) instead of % %.  
Admittedly, it's a few more characters to type; but it conforms to the 
standard xml syntax for Processing Instructions, which appeals to the 
purist in me.


Of course, I'm not really talking Mason anymore at that point, since 
there's more to Mason than just embedding perl code in an HTML 
document.  So, yeah.  :)


--
Jonathan Dataweaver Lang


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d


___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
Because I need to generate text which contains a lot of % and %. 
So, the original syntax of mason is a problem for me.


Now I know how to do with Jérôme's suggestion and John's example

Thanks,

Jean-Michel
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users