Skip to content

kiefernwald/platte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Platte

Build Status Coverage Status

Plattenbau

(Transport of Plattenbau parts in Karl-Marx-Stadt, GDR, 1975 CC BY-SA 3.0 de Deutsche Fotothek)

Platte is a small command line tool that combines static HTML pages from modules. It is named after the german word Plattenbau which is a way of building houses based on pre-fabricated parts.

Plattenbau

Installation

Platte requires a ruby environment with version 2.3 or higher. To install, run:

gem install platte

Usage

After the gem installation, platte is available in command line. It lets you combine a static HTML file from a given set of modules. Modules are folders with some configuation files and code in it and sit in the modules subfolder of the tool. They come in two flavours:

  1. Main modules names, ending with .main โ€“ usually they hold the surrounding HTML structure with placeholders for resources
  2. Other modules names end with .module โ€“ they are building blocks you can freely combine together as the body of a main module

You can use the platte command as follows:

list

platte list

This call shows you which modules are available in your system.

combine

platte combine <TARGET FILE> <MAIN MODULE> <MODULE 1> ... <MODULE N>

This lets you combine a single main-module with any number of other modules to a given target file.

Example call:

platte combine some/output/file.html html5 header content

Module structure

TODO More docs

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kiefernwald/platte.

About

A combinator tool for static HTML pages ๐Ÿ— ๐Ÿข

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages