summaryrefslogtreecommitdiff
path: root/Readme.md
blob: 0d210e061597128a031cc65c4b9ac2be7d0f62bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Flat-File Forms
===

Forms and Submissions managed flat-file

Callable via REST-API


## Directory Structure

- $root
  - repositories/
    - $group/
  - config/
    - config.toml
    - templates/

### $group consists of

- $group/
  - config/
  - $form/

### $form consists of

- $form/
  - config/
  - fields/
    - _fields.toml
    - name.toml
    - email.toml
  - submissions/
    - $year
      - $month


## config

`config.toml` with config values  
overwritten by config.toml in $group/config/  
overwritten by config.toml in $form/config/

### config/templates

Templates to use when returning a pre-rendered HTML form


## REST-API

`localhost:3000/$group/$group/$form`

GET ...$form/fields

POST ...$form