Skip to content

Add compatibility for inline JS/CSS groups #40

@benswinburne

Description

@benswinburne

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.

var basePath = '/path/to/scripts';

And then also the ability to add some bits after the group in which jQuery is rendered.

\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.
</body>

It'd also be nice given the above if dependency support for inline groups might be included too.

Cheers

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions