Closed jonesnc closed 9 years ago
When you execute the the preprocess function, you give it a context. This context is an object containing your variables and it may contain functions. So in the example above a function named static_path
is called that was passed via the context object.
You can see an example of this happening in preprocess_test.js. Here a function named hello
is passed via context object.
Can I close the issue?
Can I close the issue?
Yes.
Thanks for enlightening me.
In the README, a function called
static_path
is called like this:<script src="<!-- @exec static_path('another/production/javascript.js') -->"></script>
Could you provide some more information on what this function does and how it's defined?