[xwiki-users] How do I apply monospace wiki markup in a velocity script?
{{velocity}} ##hello## {{/velocity}} Just prints nothing. Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup. What can I do?
On 11/11/2012 05:28 PM, crocket wrote:
{{velocity}} ##hello## {{/velocity}}
Just prints nothing.
Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup.
This should work : ${escapetool.H}#hello${escapetool.H}# Jerome
What can I do? _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works. Where can I find the documentation about it? On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter <[email protected]>wrote:
On 11/11/2012 05:28 PM, crocket wrote:
{{velocity}} ##hello## {{/velocity}}
Just prints nothing.
Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup.
This should work :
${escapetool.H}#hello${**escapetool.H}#
Jerome
What can I do? ______________________________**_________________ users mailing list [email protected] http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
______________________________**_________________ users mailing list [email protected] http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
OK. I found the documentation on http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/to... What does velocity do with the second # in ${escapetool.H}#? Does it do nothing about it? On Mon, Nov 12, 2012 at 4:44 AM, crocket <[email protected]> wrote:
I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works.
Where can I find the documentation about it?
On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter <[email protected]>wrote:
On 11/11/2012 05:28 PM, crocket wrote:
{{velocity}} ##hello## {{/velocity}}
Just prints nothing.
Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup.
This should work :
${escapetool.H}#hello${**escapetool.H}#
Jerome
What can I do? ______________________________**_________________ users mailing list [email protected] http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
______________________________**_________________ users mailing list [email protected] http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
On 11/11/2012 08:44 PM, crocket wrote:
I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works.
Where can I find the documentation about it?
Strangely the documentation doesn't seem to show inherited methods from org.apache.velocity.tools.generic.EscapeTool, but if you click the "parent" link on the escapetool, you'll see getH() Jerome
On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter <[email protected] <mailto:[email protected]>> wrote:
On 11/11/2012 05:28 PM, crocket wrote:
{{velocity}} ##hello## {{/velocity}}
Just prints nothing.
Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup.
This should work :
${escapetool.H}#hello${escapetool.H}#
Jerome
What can I do? _______________________________________________ users mailing list [email protected] <mailto:[email protected]> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] <mailto:[email protected]> http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
crocket -
Jerome Velociter