Skip to content

Instantly share code, notes, and snippets.

@naoyeye
Created May 12, 2014 08:05
Show Gist options
  • Select an option

  • Save naoyeye/1316249c3d35ccae47fa to your computer and use it in GitHub Desktop.

Select an option

Save naoyeye/1316249c3d35ccae47fa to your computer and use it in GitHub Desktop.
grunt jade html 5 modernizr simple template
doctype html
//- if lt IE 7
html.no-js.lt-ie9.lt-ie8.lt-ie7
//- if IE 7
html.no-js.lt-ie9.lt-ie8
//- if IE 8
html.no-js.lt-ie9
//- [if gt IE 8] <!
html.no-js(lang="en")
//- <![endif]
head
meta(charset="utf-8")
title Your Title
script(src="/pathTo/modernizr.js")
body
h1 ooxx
@naoyeye
Copy link
Author

naoyeye commented May 12, 2014

If you encounter the following error in Grunt-jade and modernizr, this gist may help you.

Running "jade:server" (jade) task
>> Jade failed to compile "app/templates/index.jade".
>> Error: app/templates/index.jade:1
>>   > 1| !!! 5
>>     2| //if lt IE 7
>>     3|   <html class="no-js lt-ie9 lt-ie8 lt-ie7">
>>     4| //if IE 7
>>
>> `!!!` is deprecated, you must now use `doctype`
>> Destination not written because compiled files were empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment