Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML for configuration rather than config.js #8

Open
robogeek opened this issue Jun 7, 2017 · 0 comments
Open

YAML for configuration rather than config.js #8

robogeek opened this issue Jun 7, 2017 · 0 comments

Comments

@robogeek
Copy link
Contributor

robogeek commented Jun 7, 2017

It might be better to configure using YAML rather than a JS file.

The methodology would be

  • The first level is an Object - and the configFromYAML steps through the fields of the Object
  • The fields are defined and each field handled by its own code section

Plugins would be configured something like

    plugins:
         - use: "plugin-reference"
            configSetting: "config Value"
            configSetting: "config Value"
         - use: "plugin-reference"
            configSetting: "config Value"
            configSetting: "config Value"

Stylesheets

     stylesheets:
             - href: "/vendor/jquery/..."
             - href: "/vendor/bootstrap/..."
    javaScriptTop:
            - href: "/vendor/jquery/..."
            - href: "/vendor/bootstrap/..."
    javaScriptBottom:
            - href: "/vendor/jquery/..."
            - href: "/vendor/bootstrap/..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant