2017 © Pedro Peláez
 

library version-macro

Latte macros for Nette Framework.

image

adt/version-macro

Latte macros for Nette Framework.

  • Tuesday, March 20, 2018
  • by michallohnisky
  • Repository
  • 15 Watchers
  • 0 Stars
  • 811 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 57 % Grown

The README.md

Version macro

Returns file modification time, which can be used for versioning css/js files or other assets., (*1)

Installation

The best way to install is using Composer:, (*2)

$ composer require adt/version-macro

common.neon:, (*3)

services:
    versionMacro: ADT\VersionMacro\VersionMacro

latte:
    macros:
        - @ADT\VersionMacro\VersionMacro::install

remote.neon:, (*4)

services:
    versionMacro:
        setup:
            - setTimestampFile(%timestampFile%)

Without setting timestamp file, version macro returns empty string., (*5)

Usage

  • {v} - results in ?v=123
  • {vn} - results in 123
<script type="text/javascript" src="/js/myJsFile{v}"></script>
<script type="text/javascript" src="/js/myJsFile?v={vn}"></script>

The Versions

20/03 2018

dev-master

9999999-dev

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

20/03 2018

v3.1.1

3.1.1.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

08/11 2017

v3.1

3.1.0.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

17/03 2017

v3.0

3.0.0.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

11/11 2016

v2.0

2.0.0.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

04/01 2016

v1.0.1

1.0.1.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros

12/05 2015

v1.0

1.0.0.0

Latte macros for Nette Framework.

  Sources   Download

MIT

The Requires

 

nette latte adt macros block-macros