Skip to content

Repository files navigation

Instante assets

Useful macros for latte assets

Build StatusDownloads this MonthLatest stable

Requirements

Installation

The best way to install Instante assets is using Composer:

$ composer require instante/assets

Then add new extension to neon configuration

extensions:assets:Instante\Assets\DI\AssetsExtension

Usage

Instead of following code:

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

you should use:

<linkrel="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.

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages