Module Expr Str Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGtE NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Call NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Return Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGtE NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Dict decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Raise Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Raise Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return Call NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Raise Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
A smarter {% if %} tag for django templates.

While retaining current Django functionality, it also handles equality,
greater than and less than operators. Some common case examples::

    {% if articles|length >= 5 %}...{% endif %}
    {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
 N/A unittest django template N/A N/A django.template.base FilterExpression N/A N/A N/A ImportError N/A django.template FilterExpression django.template.loader get_template N/A six pyjade.runtime iteration N/A register N/A N/A template Library do_evaluate N/A N/A parser token N/A N/A N/A Calls an arbitrary method on an object. N/A code N/A token contents N/A firstspace N/A N/A code find N/A N/A firstspace 0 N/A N/A code N/A code N/A N/A firstspace 1 N/A N/A Evaluator code N/A N/A N/A register tag name __pyjade_attrs Evaluator N/A N/A template Node N/A N/A Calls an arbitrary method of an object __init__ N/A N/A self code N/A N/A N/A N/A self code code N/A render N/A N/A self context N/A N/A N/A Evaluates the code in the page and returns the result N/A modules N/A pyjade N/A __import__ pyjade N/A N/A context N/A false False N/A N/A context N/A true True N/A N/A N/A N/A N/A six text_type N/A eval N/A pyjade.runtime.attrs(%s) N/A self code modules context N/A N/A N/A NameError N/A N/A N/A N/A do_set N/A N/A parser token N/A N/A N/A Calls an arbitrary method on an object. N/A code N/A token contents N/A firstspace N/A N/A code find N/A N/A firstspace 0 N/A N/A code N/A code N/A N/A firstspace 1 N/A N/A Setter code N/A N/A N/A register tag name __pyjade_set Setter N/A N/A template Node N/A N/A Calls an arbitrary method of an object __init__ N/A N/A self code N/A N/A N/A N/A self code code N/A render N/A N/A self context N/A N/A N/A Evaluates the code in the page and returns the result N/A modules N/A N/A N/A context N/A false False N/A N/A context N/A true True N/A new_ctx N/A eval N/A dict(%s) N/A self code modules context N/A N/A N/A context update new_ctx N/A N/A N/A N/A N/A N/A register filter __pyjade_iter iteration _setup_macros_dict N/A N/A parser N/A N/A N/A N/A N/A N/A parser _macros N/A N/A N/A AttributeError N/A N/A N/A parser _macros N/A N/A DefineMacroNode N/A N/A template Node N/A __init__ N/A N/A self name nodelist args N/A N/A N/A N/A self name name N/A N/A self nodelist nodelist N/A N/A self args N/A N/A N/A self kwargs N/A N/A a args N/A N/A a N/A N/A a rstrip , N/A N/A = a N/A N/A N/A N/A N/A self args append a N/A N/A N/A name value N/A N/A a split = N/A N/A N/A self kwargs N/A name value N/A render N/A N/A self context N/A N/A N/A N/A N/A do_macro N/A N/A parser token N/A N/A N/A N/A N/A args N/A N/A token split_contents N/A N/A tag_name macro_name args N/A N/A args N/A 0 N/A args N/A 1 N/A args N/A 2 N/A N/A N/A IndexError N/A N/A m N/A '%s' tag requires at least one argument (macro name) N/A N/A N/A N/A token contents split N/A 0 N/A N/A N/A template TemplateSyntaxError m N/A nodelist N/A N/A parser parse N/A end__pyjade_kwacro N/A N/A N/A parser delete_first_token N/A N/A _setup_macros_dict parser N/A N/A N/A parser _macros N/A macro_name N/A DefineMacroNode macro_name nodelist args N/A N/A N/A parser _macros N/A macro_name N/A N/A N/A register tag name __pyjade_kwacro LoadMacrosNode N/A N/A template Node N/A render N/A N/A self context N/A N/A N/A N/A N/A do_loadmacros N/A N/A parser token N/A N/A N/A N/A N/A N/A tag_name filename N/A N/A token split_contents N/A N/A N/A IndexError N/A N/A m N/A '%s' tag requires at least one argument (macro name) N/A N/A N/A N/A token contents split N/A 0 N/A N/A N/A template TemplateSyntaxError m N/A N/A N/A N/A filename N/A 0 N/A " ' N/A N/A filename N/A -1 N/A filename N/A 0 N/A N/A filename N/A filename N/A 1 -1 N/A t N/A get_template filename N/A macros N/A N/A N/A t nodelist get_nodes_by_type DefineMacroNode N/A N/A _setup_macros_dict parser N/A macro macros N/A N/A N/A N/A parser _macros N/A N/A macro name macro N/A N/A LoadMacrosNode N/A N/A N/A register tag name __pyjade_loadkwacros UseMacroNode N/A N/A template Node N/A __init__ N/A N/A self macro fe_args fe_kwargs N/A N/A N/A N/A self macro macro N/A N/A self fe_args fe_args N/A N/A self fe_kwargs fe_kwargs N/A render N/A N/A self context N/A N/A N/A N/A i arg N/A enumerate N/A N/A self macro args N/A N/A N/A N/A fe N/A N/A self fe_args N/A i N/A N/A context N/A arg N/A N/A fe resolve context N/A N/A N/A IndexError N/A N/A N/A context N/A arg N/A N/A name default N/A N/A six iteritems N/A N/A self macro kwargs N/A N/A N/A name N/A self fe_kwargs N/A N/A N/A context N/A name N/A N/A N/A N/A self fe_kwargs N/A name resolve context N/A N/A N/A context N/A name N/A N/A N/A FilterExpression default N/A N/A self macro parser resolve context N/A N/A N/A N/A N/A self macro nodelist render context N/A N/A do_usemacro N/A N/A parser token N/A N/A N/A N/A N/A args N/A N/A token split_contents N/A N/A tag_name macro_name values N/A N/A args N/A 0 N/A args N/A 1 N/A args N/A 2 N/A N/A N/A IndexError N/A N/A m N/A '%s' tag requires at least one argument (macro name) N/A N/A N/A N/A token contents split N/A 0 N/A N/A N/A template TemplateSyntaxError m N/A N/A N/A macro N/A N/A parser _macros N/A macro_name N/A N/A N/A N/A AttributeError KeyError N/A N/A m N/A Macro '%s' is not defined macro_name N/A N/A N/A template TemplateSyntaxError m N/A fe_kwargs N/A N/A fe_args N/A N/A val values N/A N/A val N/A N/A val rstrip , N/A N/A = val N/A N/A N/A name value N/A N/A val split = N/A N/A fe_kwargs N/A name N/A FilterExpression value parser N/A N/A N/A N/A fe_args append N/A FilterExpression val parser N/A N/A macro parser parser N/A N/A UseMacroNode macro fe_args fe_kwargs N/A N/A N/A register tag name __pyjade_usekwacro N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main