Start fleshing out build script
This commit is contained in:
parent
0b8b77697b
commit
4e64d9e340
4 changed files with 149 additions and 12 deletions
18
templating/internal/sections.py
Normal file
18
templating/internal/sections.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
"""Contains all the sections for the spec."""
|
||||
from . import AccessKeyStore
|
||||
import os
|
||||
|
||||
def _render_section_room_events(env, units):
|
||||
template = env.get_template("events.tmpl")
|
||||
return template.render(example=example, event=event)
|
||||
|
||||
SECTION_DICT = {
|
||||
"room-events": _render_section_room_events
|
||||
}
|
||||
|
||||
def load(env, units):
|
||||
store = AccessKeyStore()
|
||||
for unit_key in SECTION_DICT:
|
||||
unit = SECTION_DICT[unit_key](env, units)
|
||||
store.add(unit_key, unit)
|
||||
return store
|
Loading…
Add table
Add a link
Reference in a new issue