- allow to see logic behind HTML script
apm install atom-bootstrap3
apm install atom-jade
apm install preview-plus
- right click and choose preview plus to view html version of this script
doctype
html
head
title bitcoin
link(href='css/boostrap.css', rel='stylesheet')
body
<!DOCTYPE html>
<html>
<head>
<title>bitcoin</title>
<link href="css/boostrap.css" rel="stylesheet">
</head>
<body></body>
</html>
$grey: #333
$red: #FF0000
.container
background-color: $red
body
font: 25px
color: $grey
nav
ul
margin: 10px
padding: 10px
list-style:none
li
display: inline-block
a
color: blue
.container {
background-color: #FF0000;
}
body {
font: 25px;
color: #333;
}
nav ul {
margin: 10px;
padding: 10px;
}
nav ul li {
display: inline-block;
}
nav ul li a {
color: blue;
}
gem install sass
day32_jade $ sass -v
Sass 3.4.21 (Selective Steve)
day32_jade $ ls
css index.jade
day32_jade $ cd css/
css $ sass --watch .
>>> Sass is watching for changes. Press Ctrl-C to stop.
[Listen warning]:
Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.
- watching... always watching: navigate inside the folder that has jade file
jade -w .
sass --style expanded --watch .
- map file dictates how you should interpret the css file, what source it came from