Skip to content

Create a main config in templates.json #10

@fdelaneau

Description

@fdelaneau

Move default configurations from the "common" route to a specific "config" route:

// Configuration
"config": {
    "routeInheritanceModel": "inherit", // optional - default: replace see #7
    "routeNameAsFilenameEnabled": true,
    "javascriptsDeferEnabled": true
}

// Common rules applied by default to all pages
"*": {
    "stylesheets": [
        {
            "media": "screen", // optional - default: all
            "url": "/css/public.css"
        }
    ],
    "javascripts": [
        "/js/vendor/modernizr-2.8.3.min.js",
        "/js/tooltip.js",
        "/handlers/main.js"
    ]
},

"myPage": {
    "stylesheets": [
      {
        "url": "/css/page.css"
      }
    ]
}

The "common" route should only contain elements that can be declared in other routes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions