Code Monkey home page Code Monkey logo

static-site-dev's Introduction

static-site-env

一套基于 Koa + Handlebars 静态页面开发环境.

目标与适用

  • 在打包工具流行的今天,各种定制化的工作流纷繁复杂。而有时候,标准的,约定的工作流可能更高效。
  • Java/PHP模板的渲染往往需要一整套后台软件,对前端(尤其重构)不友好。

本项目即为解决以上痛点设计的一套静态页面开发环境,模板语法尽量通用(符合原后台模板),剥离后台开发环境依赖,页面修改实时刷新和预览。

开发流程与目录说明

npm start后即可在3000预览静态页面。

我们的开发目录在front/src,目录结构如下:

├── images                   # 图片
├── scripts                  # 脚本
├── styles                   # 样式
└── views                    # 模板和模拟数据
    ├── index.html           # 一级页面
    ├── data                 # 模拟数据,用于模板渲染
    ├── helpers              # 扩展 handlebars helper
    ├── layouts              # 布局文件
    └── partials             # 共用代码块

许可

MIT

欢迎提交建议和PR。

static-site-dev's People

Contributors

creeperyang avatar

Watchers

亲爱的琨 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.