Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def visitMixin(self, mixin):
     raise CurrentlyNotSupported('mixin')
Exemplo n.º 3
0
 def visitExtends(self, node):
     raise CurrentlyNotSupported()