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

Decouple configuration from assets #213

Merged

Conversation

mjtko
Copy link
Contributor

@mjtko mjtko commented Mar 13, 2013

This PR contains changes that remove the need for .coffee.erb files in the assets, allowing the server configuration to be modified without needing the assets to be regenerated.

ie. removing the tight coupling between the configuration/environment at the time the assets are generated and the generated frontend application.

@ghost ghost assigned gabceb Mar 13, 2013
@mjtko
Copy link
Contributor Author

mjtko commented Mar 13, 2013

Note, that this is currently based on the branch generated for PR #212. I can rebase against master when/if #212 is rejected or merged.

unless @_options?
@_options = $('body').data('kandan-config')
@_options.nowThreshold = 3000
@_options.timestampRefreshInterval = 2000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding these 2 settings to the Kandan::Config so we can have all settings in one place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, sounds like a good idea. 👍

@coveralls
Copy link

Coverage increased (+0.3%) when pulling 75a3bd1 on mjtko:feature/decouple-configuration-from-assets into fc93ad8 on kandanapp:master.

View Details

@gabceb
Copy link
Member

gabceb commented Mar 13, 2013

You can rebase this once we merge #212 and I'll merge it

@coveralls
Copy link

Coverage increased (+0.3%) when pulling baa2360 on mjtko:feature/decouple-configuration-from-assets into fc93ad8 on kandanapp:master.

View Details

@gabceb
Copy link
Member

gabceb commented Mar 14, 2013

rebase this and ill merge it

…ng, removing the coupling between rendered assets and the backend application configuration in place at time of rendering.
@mjtko
Copy link
Contributor Author

mjtko commented Mar 14, 2013

Haha, was already on it. 😁

@coveralls
Copy link

Coverage increased (+0.22%) when pulling d4a857f on mjtko:feature/decouple-configuration-from-assets into 82cfd2c on kandanapp:master.

View Details

gabceb added a commit that referenced this pull request Mar 14, 2013
…m-assets

Decouple configuration from assets
@gabceb gabceb merged commit ff6530a into kandanapp:master Mar 14, 2013
@gabceb
Copy link
Member

gabceb commented Mar 15, 2013

🚢 'ed

ar7em pushed a commit to ar7em/kandan that referenced this pull request Jun 9, 2013
…ation-from-assets

Decouple configuration from assets
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.

None yet

3 participants