Forum
Choosing which feathers to add...
Hi, could someone give me advice how I could solve this problem.
I am using feathers and adding them to my pages with <?php perch_get_javascript(); ?>
& <?php perch_get_css(); ?>
Works great.
But
for one page I would like to add only certain scripts, for example NOT the mediaelementsjs feather. Is there a way to simply do this?
Thanks!
You can pass an options array as the first argument. This gets passed to the feathers in turn. So provided you added the functionality to your feathers then you could do it that way.
Thanks Drew that sounds good. Do you have have a simple example you could share with me?
The Sass feather uses this approach to pass options from the page to Sass.