inheritance.extend.mixins.block.js 624 B

1234567891011121314151617
  1. function template(locals) {
  2. var pug_html = "", pug_mixins = {}, pug_interp;
  3. pug_mixins["article"] = pug_interp = function() {
  4. var block = this && this.block, attributes = this && this.attributes || {};
  5. pug_html = pug_html + "<article>";
  6. block && block();
  7. pug_html = pug_html + "</article>";
  8. };
  9. pug_html = pug_html + "<html><head><title>My Application</title></head><body>";
  10. pug_mixins["article"].call({
  11. block: function() {
  12. pug_html = pug_html + "<p>Hello World!</p>";
  13. }
  14. });
  15. pug_html = pug_html + "</body></html>";
  16. return pug_html;
  17. }