Giter Site home page Giter Site logo

litcabbage / node-import-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 25 KB

静态页面引用公共的头部和尾部时,使用node监控这些依赖文件,当头部和尾部发生改变时,相应的静态页面内容也会发生改变

JavaScript 62.05% HTML 37.95%

node-import-template's Introduction

一、文件目录

  • img 是项目依赖的静态资源文件
  • import文件夹里面是模板文件
    • import/css.html css文件
    • import/footer.html 顾名思义,公共的footer组件
    • import/header.html 公共的header组件
    • import/import-example.html 相当于入口文件,各个组件的引入是在这个文件里面,通过link ref="import"的方式引入
  • import-example.html(经过执行node import生成的文件),经过替换后生成的最终文件
  • import.js node的执行文件

二、使用方法

直接执行node import,然后就会生成import-example.html,这个就是我们需要的静态页面,当修改该页面依赖的import/内的文件后,import-example.html文件也会自动改变

node-import-template's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.