2017 © Pedro Peláez
 

library atline

Templating System for PHP

image

requtize/atline

Templating System for PHP

  • Monday, November 13, 2017
  • by requtize
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

Atline

Atline - PHP Template System. Created for using Templating syntax for (writing) speed, and PHP syntax for facilities., (*1)

Installation via composer.json

"requtize/atline": "^1.0.0"

Advantages

  • Usage PHP code
  • Multidimentional Views extending
  • Autoescape echoed data
  • Filters
  • Easy to implement

Examples

Echo with Auto-escape

{{ $var }}

Conditions

@if $arg == 1
    ...
@elseif $arg == 2
    ...
@else
    ...
@endif

Filters

{{ $var | upper }}

Loops

@loop $array
    {{ $key }} => {{ $item }}
@endloop

// Or

@foreach $array
    {{ $key }} => {{ $item }}
@endforeach

PHP internal function call

{{ number_format($invoice->getCost(), 2) }}

External method call (Environment extended class method)

{{ t('translateIndex') }}

License

This code is licensed under MIT License., (*2)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/requtize/atline

Templating System for PHP

  Sources   Download

MIT

The Requires

  • php ~5.5 || ^7.0

 

templating template layout

19/04 2017

1.0.3

1.0.3.0 https://github.com/requtize/atline

Templating System for PHP

  Sources   Download

MIT

The Requires

  • php ~5.5 || ^7.0

 

templating template layout

15/01 2017

1.0.2

1.0.2.0 https://github.com/requtize/atline

Templating System for PHP

  Sources   Download

MIT

The Requires

  • php ~5.5 || ^7.0

 

templating template layout

19/10 2016

1.0.1

1.0.1.0 https://github.com/requtize/atline

Templating System for PHP

  Sources   Download

MIT

The Requires

  • php ~5.5 || ^7.0

 

templating template layout

26/04 2016

1.0.0

1.0.0.0 https://github.com/requtize/atline

Templating System for PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

templating template layout

14/11 2015

0.2.0

0.2.0.0 https://github.com/requtize/atline

Templating System for PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

templating template layout

22/10 2015

0.1.1

0.1.1.0 https://github.com/requtize/atline

Templating System for PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

templating template layout

21/10 2015

0.1.0

0.1.0.0 https://github.com/requtize/atline

Templating System for PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

templating template layout