项目作者: MarynaHapon

项目描述 :
Heavy desktop site (training project)
高级语言: CSS
项目地址: git://github.com/MarynaHapon/Serfers.git
创建时间: 2017-08-07T09:39:15Z
项目社区:https://github.com/MarynaHapon/Serfers

开源协议:

下载


Serfers

Desktop site (training project).

Technologies

  • Gulp - Automate and enhance your workflow
  • Pug - Terse language for writing HTML templates.
  • Stylus - CSS with superpowers.

Requirements and Use

Requirements

  1. $ npm install -g gulp

Use

  1. $ git clone https://github.com/MarynaHapon/Chajka
  2. $ npm install
  3. $ gulp

Tasks

gulp: Runs the default task (dev) including the following ones :

  • styles
  • pug
  • scripts
  • img
  • svg
  • clean
  • fonts
  • serve
  • watch

Storing Data

File content.json :

  1. "footer": {
  2. "copyright": "© 2017 Surfers Co.",
  3. }

Using Data

File footer.pug

  1. p= content.footer.copyright

File pug.js

  1. content: JSON.parse($.fs.readFileSync('./data/content.json', 'utf8'))