Sha256: 1b3475945233370f6009deba4f698b5b9ca0574fc0239fe3df32114039a25680

Contents?: true

Size: 572 Bytes

Versions: 41

Compression:

Stored size: 572 Bytes

Contents

<%doc>
    This is a mason component.
    # This is a comment.
</%doc>

<%args>
    $color         # this argument is required!
    $size => 20    # default size
    $country => undef   # this argument is optional, default value is 'undef'
    @items => (1, 2, 'something else')
    %pairs => (name => "John", age => 29)
</%args>

% # A random block of Perl code
<%perl>
    my @people = ('mary' 'john' 'pete' 'david');
</%perl>

% # Note how each line of code begins with the mandatory %
% foreach my $person (@people) {
    Name: <% $person %>
% }

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
rouge-3.7.0 lib/rouge/demos/mason