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

Add support for adding view options in config #5

Merged
merged 1 commit into from
May 19, 2014

Conversation

ropez
Copy link
Contributor

@ropez ropez commented May 15, 2014

When using the default server, in addition to the default options
(optimize, reload and cachebust), additional options can be configured
in the config file, and are available as global variables in the views.

Example with jade:

# views/index.jade
body
  div.message
    p= message

# mimosa-config.coffee
server:
  views:
    compileWith: 'jade'
    options:
      message: "message from config file"

When using the default server, in addition to the default options
(optimize, reload and cachebust), additional options can be configured
in the config file, and are available as global variables in the views.

Example with jade:

    # views/index.jade
    body
      div.message
        p= message

    # mimosa-config.coffee
    server:
      views:
        compileWith: 'jade'
        options:
          message: "message from config file"
@dbashford
Copy link
Owner

👍

I am swamped today, but I'll try and take a look sometime soon. Thanks!

dbashford added a commit that referenced this pull request May 19, 2014
Add support for adding view options in config
@dbashford dbashford merged commit 675152a into dbashford:master May 19, 2014
dbashford added a commit that referenced this pull request May 19, 2014
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

Successfully merging this pull request may close these issues.

2 participants