예제 #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
예제 #2
0
 def visitMixin(self, mixin):
     raise CurrentlyNotSupported('mixin')
예제 #3
0
파일: html.py 프로젝트: Dryja/pypugjs
 def visitExtends(self, node):
     raise CurrentlyNotSupported()