Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

requtize/atline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atline

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

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.