Project

platte

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A static generator tool for static HTML pages combined from modules.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0
~> 0.49.0

Runtime

 Project Readme

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.