AarKay is a code generator designed for all developers to create any type of file from data and template.

Updated for AarKay 0.0.2

The tool is designed especially for developers working on many projects at large scale. All projects have some files which are identical and only the data is what changes. These files can be converted into a template and data can be supplied to either generate or update all these files with a single command.

All your Datafiles are located inside one folder giving you the birds eye view of your data.

The Datafiles directory structure is directly mapped with the Generatedfiles directory structure.

Installation

Using Homebrew — brew install rahulkatariya/formulae/aarkay

Components

Templatefiles

Datafiles

Templatefiles

A Templatefiles consists of three components — Name, Extension and a Stencil template.

Greeting.txt.stencil

Breaking down the above Tempaltefile — Greeting.txt.stencil

Greeting — This is a unique name of the template.

— This is a unique name of the template. txt — This is the extension for all Generatedfiles.

— This is the extension for all Generatedfiles. Hello {{name}} — This is the Stencil template.

Templatefiles Directory — ~/AarKay/AarKayTemplates/AarKay/ .

All the templates should be created inside Templatefiles Directory.

Datafiles

A Datafile consists of three components — Filename, Template and Data for that template in JSON or Yml format.

Rahul.Greeting.yml

Breaking down the above Datafile — Rahul.Greeting.yml

Rahul — This is the name of Generatedfile.

— This is the name of Generatedfile. Greeting — This is the template to search for in Templatefiles Directory .

— This is the template to search for in . name: Rahul — This is the data to be rendered with template Greeting.

Datafiles Directory — ~/AarKay/AarKayData/ .

All the data should be created inside Datafiles Directory.

Getting Started