Proposals for declaring doctypes in Pre:
Moved to this wiki: https://github.com/sellside/pre/wiki/Pre-Keywords
Related Issue: https://github.com/sellside/pre/issues/16
To get this output:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| <link href="" rel="stylesheet" > | |
| <script src="" type="text/javascript"></script> | |
| </head> | |
| <body> |
| /* Inside grunt.js file (don't forget to add "growl" as a project dependency) */ | |
| grunt.utils.hooker.hook(grunt.fail, "warn", function(opt) { | |
| require('growl')(opt.name, { | |
| title: opt.message, | |
| image: 'Console' | |
| }); | |
| }); |
Proposals for declaring doctypes in Pre:
Related Issue: https://github.com/sellside/pre/issues/16
To get this output:
note, most of these examples are taken from: http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn
E#name| module.exports = function (grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| less: { | |
| all: { | |
| src: '*.less', | |
| dest: 'style.css' | |
| } | |
| }, |
| /** | |
| * See https://github.com/sellside/pre | |
| */ | |
| /** | |
| * References/todos: | |
| * http://www.lemoda.net/javascript/dump-dom/dump-dom.html | |
| * http://www.howtocreate.co.uk/tutorials/javascript/dombasics | |
| * Use treewalker or nodefilter?? | |
| * https://developer.mozilla.org/en-US/docs/DOM/NodeFilter |
well cool, but how about large bodies of text:
yuck
p
| foo bar baz
| rawr rawr
| super cool
| go jade go| // | |
| // Build Bootstrap Docs | |
| // --------------------------------------------- | |
| // Credit: inspired by @ctalkington | |
| module.exports = function(grunt) { | |
| // Grunt utilities. | |
| var task = grunt.task, | |
| file = grunt.file, |