c:set
var, scope(optional), value(optional)
|
moved from here
|
{c:set var="temp"}
some text
{/c:set}
moved from here
|
c:out
var, scope(optional)
|
some text
is now here
|
{c:out value="${temp}"/}
is now here
|
c:set
var, scope(optional), value(EL)
c:out
value(EL)
|
some text
is now here too
(9 characters)
|
{c:set var="text" value="${temp}"/}
{c:out value="${text}"/}
is now here too<br/>
({c:out value="${fn:length(text)}"/} characters)
|
addProperty
name(optional), value(optional)
c:forEach
items(EL), var, scope(optional)
|
|
{addProperty name="animals" value="dog"/}
{addProperty name="animals" value="cat"/}
{addProperty name="animals" value="joomla"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
|
removeProperty
name(optional), property(optional), value(optional)
c:forEach
items(EL), var, scope(optional)
|
|
{removeProperty name="animals" property="2"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
|
c:remove
var, scope(optional)
c:forEach
items(EL), var, scope(optional)
|
|
{c:remove var="animals"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
|
jsp:include
page
|
Moslate for Mambo 4.5.1+/Joomla
Version:0.5.5
Copyright (C) 2004 - 2005 Daniel Ecer
http://de.siteof.de/
Moslate is a Mambo Component/Mambot that enables easy
Moslate/Mambot creation, activated by a common syntax.
(see "About", readme.moslate.php or homepage for more information)
Additional copyright note:
Some code fragments are taken from the Mambo Core (usually noted).
Images are modified and unmodified taken from Eclipse.
|
{jsp:include page="/administrator/components/com_moslate/README"/}
|
c:import
url, var(optional), scope(optional)
c:url
value, var, scope(optional)
c:param
name, value
|
text1 == text2? false
text2 == text3? true
part of text1:
Moslate for Mambo 4.5.1+/Joomla
part of text2:
part of text3:
|
{c:set var="text1"}
{c:import url="/administrator/components/com_moslate/README"/}
{/c:set}
{c:import var="text2" url="/index2.php"}
{c:param name="option" value="com_rss"/}
{c:param name="feed" value="RSS2.0"/}
{c:param name="no_html" value="1"/}
{/c:import}
{c:url var="url" value="/index2.php"}
{c:param name="option" value="com_rss"/}
{c:param name="feed" value="RSS2.0"/}
{c:param name="no_html" value="1"/}
{/c:url}
{c:import var="text3" url="${url}"/}
text1 == text2? {c:out value="${text1 == text2}"/}<br/>
text2 == text3? {c:out value="${text2 == text3}"/}<br/>
<br/>
part of text1:<br/>
{c:out value="${fn:substringBefore(text1, 'Version')}"/}<br/>
<br/>
part of text2:<br/>
{c:out value="${fn:substringBefore(text2, '/lastBuildDate')}" escapeXml="true"/}<br/>
<br/>
part of text3:<br/>
{c:out value="${fn:substringBefore(text2, '/lastBuildDate')}" escapeXml="true"/}<br/>
|