THIS PROJECT IS STILL IN THE DESIGN PHASE
IDEAS & CONTRIBUTIONS ARE WELCOME
An Open Source Universe Project
- Custom Template Syntax
Planned
- Generate Form from Template File
Planned
- Fill Template Form using data in a BigParser Grid
Planned
- Fill Multiple Templates at once using a
fabricators
BigParser GridPlanned
npm install fabricators
Read more about the Design behind fabricators
here.
{name}.txt
// FABRIC: { name: 'string', birthday: 'date' }
Hello <%= name%>!<%
if (
birthday.getDay() === new Date().getDay()
&& birthday.getMonth() === new Date().getMonth()
) {
print('Happy Birthday!')
}
%>
$ fabricators --template template.txt
name: Anubis
birthday: 07/30/2001
$ cat anubis.txt
Hello Anubis! Happy Birthday!
$ fabricators --template template.txt --gridId yourGridIdWithNameAndBirthdayColumns
$ ls -1
anubis.txt
dan.txt
dom.txt
sarah.txt
ed.txt
...
fabricators
is under active development, documentation will be added once an initial release is ready.
We would love for you to contribute your ideas, code, & fixes to fabricators
.
We encourage everyone to read our Design Document to learn more about the thought process behind fabricators.
Also check out the rewards offered for contributing to the Open Source Universe.
MIT