I want to acess a variable that is defined in an asset file. Currently, my code looks like this:
<script type="text/javascript">
handler = something;
</script>
Then I can use "handler" with no problems inside the html. The case is that I want to move this piece of JS to a file inside assets folder, to a cleaner view, assuming that the file is already being loaded by asset pipeline.
Any idea?