canton7 / canton7/fuelphp-casset
Add compatibility for inline JS/CSS groups
- Dominant language
- PHP
- Stars
- 102
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
It'd be nice to be able to render groups of inline JS/CSS much like you can with the standard groups.
The reason for this is for example outputting non jQuery related global vars in the header i.e.
``` javascript
var basePath = '/path/to/scripts';
```
And then also the ability to add some bits after the group in which jQuery is rendered.
``` php
\Casset::render_js_inline('without_jquery');
\Casset::render_js('footer'); // includes jquery and other JS which relies on JS from without jQuery inline group like paths for ajax requests etc
\Casset::render_js_inline('with_jquery'); // includes inline js included from within controllers etc which relies on jquery.
```
It'd also be nice given the above if dependency support for inline groups might be included too.
Cheers
Ben
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the Casset::render_js_inline and Casset::render_js entry points, then compare how standard groups are registered and rendered. Define how named inline groups are ordered around standard groups and how their dependencies behave; done means the examples can render pre-jQuery and post-jQuery inline content for both JS and CSS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100