Arguments in depth¶
Examples given here are in tabular form. The non-standard options are a list of
options to the argument class which are not the default value. The input is the
single token in your template tag that gets consumed by this argument class. The
output is the value you get in your render_tag
method for the keyword of
this argument.
Context for all examples: {'name': 'classytags'}
Argument¶
Non-standard options |
Input |
Output |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
KeywordArgument¶
Non-standard options |
Input |
Output |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IntegerArgument¶
Non-standard options |
Input |
Output |
---|---|---|
|
|
|
|
|
ChoiceArgument¶
Non-standard options |
Input |
Output |
---|---|---|
|
|
|
|
|
|
MultiValueArgument¶
Non-standard options |
Input |
Output |
---|---|---|
|
||
|
|
MultiKeywordArgument¶
Non-standard options |
Input |
Output |
---|---|---|
|
||
|
|
|
|
|
|
Flag¶
Non-standard options |
Input |
Output |
---|---|---|
|
|
|
|
|
|
|
|
|