包详细信息

still

paularmstrong62MIT0.0.7

A static site generator built with node.js

static, express, html, website

自述文件

Still

Still is a utility to help you manage your small site.

Because you know HTML, Git is your content management system. All that you really need is something to manage your templates. That's what Still is for.

Usage

Getting Started

Data

For every *.html file found, Still will look to see if there is a .json file of the same name in the same directory. If there is, that file will be used as the data context for the rendered template.

Building Your Site

still [path] -o [output path] [options]

Options:

  • -o, --out
    • Output directory
    • [required]
  • -e, --engine
    • Template engine
    • [default: "swig"]
  • -i, --ignore
    • Ignore path
  • --encoding
    • File encoding (input and output)
    • [default: "utf-8"]
  • --verbose
    • Verbosity mode:
      • 0 = silent
      • 1 = default
      • 2 = warnings
      • 3 = debug
    • [default: 1]

Development and Testing

still-server [path] [options]

Options:

  • -e, --engine
    • Template engine
    • [default: "swig"]
  • -p, --port
    • Server port
    • [default: 3000]
  • --encoding
    • File encoding (input and output)
    • [default: "utf-8"]
  • --verbose
    • Verbosity mode:
      • 0 = silent
      • 1 = default
      • 2 = warnings
      • 3 = debug
    • [default: 1]

License

(The MIT License)

Copyright (c) 2012 Paul Armstrong paul@paularmstrongdesigns.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

更新日志

0.0.5 / 2012-11-01

  • Fixed Properly get folder ancestor data file

0.0.4 / 2012-10-31

  • Changed Console output unified and prettified a bit

0.0.3 / 2012-10-24

  • Added Use -l option to create symbolic links
  • Changed if error reading the json data, ignore it
  • Added render error pages at error/
  • Added Use -o to pen site on server run

0.0.2 / 2012-10-21

  • Fixed copying files

0.0.1 / 2012-10-21

  • Changed Require nodejs@>=0.8.0
  • Changed Remove default template engine dependencies
  • Added look for parent-folder data

0.0.0 / 2012-10-20

  • Initial release