subcomponents

Hiram Gibbard <[email protected]> Mon, 9 Jan 2017 14:25:09 -0600
Newsgroups gmane.comp.web.mason.user
Message-ID <CAGTmFdHyFSzmVkS=HYg9O=SnhfcjyQWh42_ZGLXjeaDDMokxvw@mail.gmail.com>
--===============8130258725307377891==
Content-Type: multipart/alternative; boundary=001a113e32800c8df60545af2a2b

--001a113e32800c8df60545af2a2b
Content-Type: text/plain; charset=UTF-8

Hi,

Trying to decifer this statment:

my $is_valid = $m->comp(".is_valid_sshkey", sshkey => $ssh2, uidnumber =>
$employeeNumber, );

As I understand it, this is a mason subcomponent, but what isn't clear to
me is the ".is_valid_sshkey"

is is_valid_sshkey supposed to be defined somewhere like a
function/subroutine ?

As the documentation reads its states the following:

"How does Mason figure out which component calls are specified directly and
which indirectly? It applies some simple parsing rules. In a component call
tag, if the first nonwhitespace character is a letter, number, underscore (
_ ), slash ( / ), or period ( . ), Mason assumes that this text is a plain
text component path rather than a Perl expression. In that case, everything
up to the first comma or end of the tag (&>), whichever comes first, is
assumed to be a string specifying the component path. Anything after a
comma, if present, will be considered a list of arguments to pass to the
called component."


which i assume means it's just text? I've searched all the code and files
looking for mention of is_valid_sshkey in hopes it would be a function or
routin defined that accepted two parameters?

Looking for laymen terms guidance.

-- 
Hiram Gibbard
[email protected]
http://hiramgibbard.com

--001a113e32800c8df60545af2a2b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>Trying to decifer this statment:</d=
iv><div><br></div><div>my $is_valid =3D $m-&gt;comp(&quot;.is_valid_sshkey&=
quot;, sshkey =3D&gt; $ssh2, uidnumber =3D&gt; $employeeNumber, );</div><di=
v><br></div><div>As I understand it, this is a mason subcomponent, but what=
 isn&#39;t clear to me is the &quot;.is_valid_sshkey&quot;</div><div><br></=
div><div>is is_valid_sshkey supposed to be defined somewhere like a functio=
n/subroutine ?</div><div><br></div><div>As the documentation reads its stat=
es the following:</div><div><br></div><div>&quot;<span style=3D"color:rgb(0=
,0,0);font-family:helvetica,sans-serif;font-size:medium">How does Mason fig=
ure out which component calls are specified directly and which indirectly? =
It applies some simple parsing rules. In a component call tag, if the first=
 nonwhitespace character is a letter, number, underscore (=C2=A0</span><cod=
e style=3D"color:rgb(0,0,0)">_</code><span style=3D"color:rgb(0,0,0);font-f=
amily:helvetica,sans-serif;font-size:medium">=C2=A0), slash (=C2=A0</span><=
code style=3D"color:rgb(0,0,0)">/</code><span style=3D"color:rgb(0,0,0);fon=
t-family:helvetica,sans-serif;font-size:medium">=C2=A0), or period (=C2=A0<=
/span><code style=3D"color:rgb(0,0,0)">.</code><span style=3D"color:rgb(0,0=
,0);font-family:helvetica,sans-serif;font-size:medium">=C2=A0), Mason assum=
es that this text is a plain text component path rather than a Perl express=
ion. In that case, everything up to the first comma or end of the tag (</sp=
an><code style=3D"color:rgb(0,0,0)">&amp;&gt;</code><span style=3D"color:rg=
b(0,0,0);font-family:helvetica,sans-serif;font-size:medium">), whichever co=
mes first, is assumed to be a string specifying the component path. Anythin=
g after a comma, if present, will be considered a list of arguments to pass=
 to the called component.&quot;</span></div><div><font color=3D"#000000" fa=
ce=3D"helvetica, sans-serif" size=3D"3"><br></font></div><div><font color=
=3D"#000000" face=3D"helvetica, sans-serif" size=3D"3"><br></font></div><di=
v><font color=3D"#000000" face=3D"helvetica, sans-serif" size=3D"3">which i=
 assume means it&#39;s just text? I&#39;ve searched all the code and files =
looking for mention of=C2=A0</font>is_valid_sshkey=C2=A0<span style=3D"colo=
r:rgb(0,0,0);font-family:helvetica,sans-serif;font-size:medium">in hopes it=
 would be a function or routin defined that accepted two parameters?</span>=
</div><div><font color=3D"#000000" face=3D"helvetica, sans-serif" size=3D"3=
"><br></font></div><div><font color=3D"#000000" face=3D"helvetica, sans-ser=
if" size=3D"3">Looking for laymen=C2=A0terms guidance.=C2=A0<br clear=3D"al=
l"></font><div><br></div>-- <br><div class=3D"gmail_signature"><div dir=3D"=
ltr"><div>Hiram Gibbard<br><a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a></div><div><a href=3D"http://hiramgibbard.com=
" target=3D"_blank">http://hiramgibbard.com</a></div><div><br><div style=3D=
"display:inline"></div></div></div></div>
</div></div>

--001a113e32800c8df60545af2a2b--


--===============8130258725307377891==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
--===============8130258725307377891==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

--===============8130258725307377891==--