PHPackages                             dorsetdigital/silverstripe-requirementsinline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dorsetdigital/silverstripe-requirementsinline

Abandoned → [https://github.com/DorsetDigital/silverstripe-enhanced-requirements](/?search=https%3A%2F%2Fgithub.com%2FDorsetDigital%2Fsilverstripe-enhanced-requirements)Silverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

dorsetdigital/silverstripe-requirementsinline
=============================================

Provides a mechanism to inline javscript and css from external files

v1.0(7y ago)2135BSD-3-ClausePHPCI failing

Since Jul 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DorsetDigital/silverstripe-requirementsinline)[ Packagist](https://packagist.org/packages/dorsetdigital/silverstripe-requirementsinline)[ RSS](/packages/dorsetdigital-silverstripe-requirementsinline/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

silverstripe-requirementsinline
===============================

[](#silverstripe-requirementsinline)

*Please note: This module is no longer in active development. The functionality which this module provides can now be found in the following module:*

---

Extension of SilverStripe's requirements to allow for adding scripts and CSS inline from files

Silverstripe provides a number of ways to add Javascript and CSS to your pages, but currently doesn't allow you to add inline code from external files. This module is a simple way to do this, meaning that you can keep your inline scripts and CSS in separate files to help with your build process, but take advantage of using them inline where needed.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3545afb876f0ba0e613176a5bd8582693bea6a95bc2f12bf8a681cf3c9d23737/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f446f727365744469676974616c2f73696c7665727374726970652d726571756972656d656e7473696e6c696e652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DorsetDigital/silverstripe-requirementsinline/?branch=master)[![Build Status](https://camo.githubusercontent.com/32549af72d5579af29e65b0c7502e340065932ec40711332aa86fff4af73986c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f446f727365744469676974616c2f73696c7665727374726970652d726571756972656d656e7473696e6c696e652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DorsetDigital/silverstripe-requirementsinline/build-status/master)[![License](https://camo.githubusercontent.com/b3775a2de17853a90995faa104f941eef3ad3c40cc89e34b8b1eaea014614d4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d425344253230332d2d436c617573652d626c75652e737667)](LICENSE.md)[![Version](https://camo.githubusercontent.com/6afa973db3747a1b96f835ace691b112a5620ff2257d477fa7f0bb27f639fe15/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f727365746469676974616c2f73696c7665727374726970652d726571756972656d656e7473696e6c696e652e7376673f7374796c653d666c6174)](https://packagist.org/packages/dorsetdigital/silverstripe-requirementsinline)

Requirements
============

[](#requirements)

- Silverstripe 4.x

Installation
============

[](#installation)

- Install the code with `composer require dorsetdigital/silverstripe-requirementsinline`
- Run a `dev/build?flush` to update your project

Usage
=====

[](#usage)

Use the methods in the same way as the standard `Requirements` methods for `themedCSS()` and `themedJavascript()`:

```
