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-4.5.1 lib/rouge/demos/mason
rouge-4.5.0 lib/rouge/demos/mason
rouge-4.4.0 lib/rouge/demos/mason
rouge-4.3.0 lib/rouge/demos/mason
rouge-4.2.1 lib/rouge/demos/mason
rouge-4.2.0 lib/rouge/demos/mason
rouge-4.1.3 lib/rouge/demos/mason
rouge-4.1.2 lib/rouge/demos/mason
rouge-4.1.1 lib/rouge/demos/mason
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/mason
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/mason
rouge-4.1.0 lib/rouge/demos/mason
rouge-4.0.1 lib/rouge/demos/mason
rouge-4.0.0 lib/rouge/demos/mason
rouge-3.30.0 lib/rouge/demos/mason
rouge-3.29.0 lib/rouge/demos/mason
rouge-3.28.0 lib/rouge/demos/mason
rouge-3.27.0 lib/rouge/demos/mason
rouge-3.26.1 lib/rouge/demos/mason
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/demos/mason