2017 © Pedro Peláez
 

library assets

Instante assets adds useful macros to work with assets in www directory

image

instante/assets

Instante assets adds useful macros to work with assets in www directory

  • Tuesday, May 2, 2017
  • by amik
  • Repository
  • 2 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Instante assets

Useful macros for latte assets, (*1)

Build Status Downloads this Month Latest stable, (*2)

Requirements

Installation

The best way to install Instante assets is using Composer:, (*3)

$ composer require instante/assets

Then add new extension to neon configuration, (*4)

extensions:
    assets: Instante\Assets\DI\AssetsExtension

Usage

Instead of following code:, (*5)

<link rel="stylesheet" href="{$basePath}/css/main.min.css">

you should use:, (*6)

<link rel="stylesheet" href="{hashedAssetVersion 'css/main.min.css'}">

It will automatically generates MD5 hash of current asset to prevent unwanted caching. Hash is regenerated after 1 week or after you manually clear cache., (*7)

To simply prepend $basePath url to asset, you can use macro {asset 'path/to/file'}., (*8)

The Versions

02/05 2017

dev-master

9999999-dev

Instante assets adds useful macros to work with assets in www directory

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

assets nette instante

02/05 2017

v0.1.3

0.1.3.0

Instante assets adds useful macros to work with assets in www directory

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

assets nette instante

01/05 2017

v0.1.2

0.1.2.0

Instante assets adds useful macros to work with assets in www directory

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

assets nette instante

28/04 2017

v0.1.1

0.1.1.0

Instante assets adds useful macros to work with assets in www directory

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

assets nette instante

28/04 2017

v0.1.0

0.1.0.0

Instante assets adds useful macros to works with assets in www directory

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

assets nette instante