#18 new
Gianni A Chiappetta

ERB in constants.yml

Reported by Gianni A Chiappetta | June 18th, 2009 @ 09:35 PM

It would be useful if the constants.yml file could contain ERB, and be parsed when values are interpolated.

Use Case

A lot of the time javascript requires some URLS to be hardcoded into the script. These URLs could change depending on the current server (e.g. development, staging, production).

Example

VERSION: 1.0.0
DOMAIN: <%= SERVER_NAME %>

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

JavaScript dependency management and concatenation
<a href="http://getsprockets.org/">http://getsprockets.org/</a>

People watching this ticket

Pages