Basics
- Text Templating++
- The fundamental building block in Mason is a "component", which can contain text and/or code.
- A very simple component:
% my $who = 'world'; Hello, <% $who %>
- Mason components can contain three things:
- Text (HTML, XML, etc.)
- Code which generates output
- Inline code (loops, if/else, assignments, etc.)
- Plain text is always plain text.