#23 new
James Bebbington

Add option to ignore string constants?

Reported by James Bebbington | October 15th, 2009 @ 12:47 PM

In trying to require the Datepicker jquery plugin I get a

Sprockets::UndefinedConstantError in SprocketsController#show

couldn't find constant `prev' in line 24 of /app/javascripts/jquery.datepicker.js

It appears that the Datepicker plugin uses the <%= ... %> syntax internally for its own templating needs and this clashes with Sprockets' constants interpolation. Would it be possible to extend the require directive with an option to disable this functionality for a given file?


Comments and changes to this ticket

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>