def visitMixin(self, mixin): self.mixing += 1 if not mixin.call: self.buffer('{%% __pypugjs_kwacro %s %s %%}' % (mixin.name, mixin.args)) self.visitBlock(mixin.block) self.buffer('{% end__pypugjs_kwacro %}') elif mixin.block: raise CurrentlyNotSupported("The mixin blocks are not supported yet.") else: self.buffer('{%% __pypugjs_usekwacro %s %s %%}' % (mixin.name, mixin.args)) self.mixing -= 1
def visitMixin(self, mixin): raise CurrentlyNotSupported('mixin')
def visitExtends(self, node): raise CurrentlyNotSupported()