Adaptive Website (Test task).
- Gulp - Automate and enhance your workflow
- Pug - Terse language for writing HTML templates.
- Stylus - CSS with superpowers.
$ npm install -g gulp
$ git clone https://github.com/MarynaHapon/Chajka
$ npm install
$ gulp
gulp
: Runs the default task (dev) including the following ones :
styles
pug
scripts
img
svg
clean
fonts
serve
watch
File content.json
:
"footer": {
"text": "© 2016 Институт вертебрологии и реабилитации"
}
File footer.pug
p= content.footer.text
File pug.js
content: JSON.parse($.fs.readFileSync('./data/content.json', 'utf8'))