I’ve just been introduced to the HTMLHelper plugin and although I think it’s pretty cool and helps tidy up my views a lot I’m finding that it’s lacking in a few places.
At the moment I’m writing a custom plugin that extends the Core ones and add / overwriting to put in the things that I need. I’m just wondering that what’s the process for submitting these enhancements to be part of the Core plugin instead?
Just a few examples of things I’m finding right now as I’m trying to migrate things across:-
- the Link() method is missing a charset attribute as an argument
- There is no support for adding in conditions for JS / CSS to be displayed on the page. i.e.
- It would be helpful to have an HTMLHead method and supporting arguments on things like addJSContent() - We’ve got a few handlers that load JS scripts into the requests head if certain conditions are meet. It would be nice if we could do something like this…
HTMLHelper.addJSContent(content = renderView(‘JS/myScript’), sendToHeader = true )
- Off the back of that it would be good to see support for things like jQuery. Our JS Views don’t start have $(document).ready() at the start. The idea being then we can add join multiple JS Views together and then wrapper them when pushing them out. So again something like this would be ace:-
HTMLHelper.addJSContent(content = renderView(‘JS/myScript’),sendToHeader = true, framework = ‘jQuery’ );
Maybe content could be an array of JS content which is looped over and displayed within: