Commit 740c9b7d by Victor Shnayder

fixed docstring for customtag

parent 0b67d1c4
...@@ -7,16 +7,14 @@ from mako.template import Template ...@@ -7,16 +7,14 @@ from mako.template import Template
class CustomTagModule(XModule): class CustomTagModule(XModule):
""" """
This module supports tags of the form This module supports tags of the form
<customtag option="val" option2="val2"> <customtag option="val" option2="val2" impl="tagname"/>
<impl>$tagname</impl>
</customtag>
In this case, $tagname should refer to a file in data/custom_tags, which contains In this case, $tagname should refer to a file in data/custom_tags, which contains
a mako template that uses ${option} and ${option2} for the content. a mako template that uses ${option} and ${option2} for the content.
For instance: For instance:
data/custom_tags/book:: data/mycourse/custom_tags/book::
More information given in <a href="/book/${page}">the text</a> More information given in <a href="/book/${page}">the text</a>
course.xml:: course.xml::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment