Author Topic: Updating Mason Templates  (Read 2756 times)


  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Updating Mason Templates
« on: January 29, 2017, 09:13:25 pm »
Hello all,

I have been trying to develop some local updates to the Mason templates (in /usr/share/zentyal/stubs/) to try and influence the behavior of some of the Zentyal components.

However I am running into an issue that I can't seem to figure out what the types are used in the templates.

I assume that the types used in the templates are the same as those used in the Zentyal Perl infrastructure - but I'm not sure how to figure out what's what.

For instance, in /usr/share/zentyal/stubs/dns/named.conf.local.mas:

% foreach my $dom (@domains) {
%   next if (defined $sambaZones and
%            lc ($dom->{name}) eq any @{$sambaZones});

@domains is declared as an input into the template - it clearly is a type defined "somewhere", judging by the use of "$dom->{name}"; however how do I figure out that "name" is part of "$dom"?