2017 © Pedro Peláez
 

october-plugin inlineassets-plugin

Provides inlineStyles and inlineScripts that embed the assets in the HTML

image

mcustiel/inlineassets-plugin

Provides inlineStyles and inlineScripts that embed the assets in the HTML

  • Monday, October 31, 2016
  • by mcustiel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 350 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

oc-pages-compactor

OctoberCMS plugin that provides embedding of assets to pages., (*1)

Twig tags

inlineStyles

Embeds the content of the add css files into the HTML code., (*2)

Example

  • Component.php
$this->addCss('my/style.css');
  • my/style.css
a {
    color: red;
}
  • twig.htm:
<head>
    {% inlineStyles %}
</head>
  • HTML result:
<head>
    <style type="text/css">
    a {
        color: red;
    }
    </style>
</head>

inlineScripts

The behaviour of this tag is analog to that of inlineStyles, for javascript assets added with addJs., (*3)

The Versions

31/10 2016

dev-master

9999999-dev

Provides inlineStyles and inlineScripts that embed the assets in the HTML

  Sources   Download

The Requires

  • php >=5.5.9

 

inline cms assets october styles scripts

07/10 2016

dev-with-pages-compactation

dev-with-pages-compactation

Provides inlineStyles and inlineScripts that embed the assets in the HTML

  Sources   Download

The Requires

 

inline cms assets october styles scripts

07/10 2016

v1.0.1

1.0.1.0

Provides inlineStyles and inlineScripts that embed the assets in the HTML

  Sources   Download

The Requires

 

inline cms assets october styles scripts