Runtime Motif Configuration #129

Closed
paragonie-scott opened this Issue Aug 27, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@paragonie-scott
Member

paragonie-scott commented Aug 27, 2016

Coming in v1.3.0, Airship captains should be able to adjust configuration options for their motifs instead of creating their own motif and adjusting the knobs there.

In templates, this will be facilitated by a new global (MOTIF) that provides read-only access to the current configuration.

{{ MOTIF["header"]["background-color"] }} {# example: #00FF00 #}
{% if MOTIF["showLogo"] %} <img src="foo" />{% endif %}

We may also want to allow some motifs to allow users to customize their experience. I'm not sure if I'll fold this into 1.3.0 or wait until a new version, as it does increase the complexity significantly.

@paragonie-scott paragonie-scott added this to the Version 1.3.0 milestone Aug 27, 2016

paragonie-scott added a commit that referenced this issue Aug 28, 2016

Merge pull request #130 from paragonie/issue-129
Allow Motifs to be Configured (See #129)
@paragonie-scott

This comment has been minimized.

Show comment
Hide comment
Member

paragonie-scott commented Aug 28, 2016

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment