2017 © Pedro PelĂĄez
 

library simple-view-engine

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

image

crodas/simple-view-engine

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  • Monday, March 9, 2015
  • by crodas
  • Repository
  • 1 Watchers
  • 5 Stars
  • 4,795 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 39 Versions
  • 1 % Grown

The README.md

Simple View

This project is a simple template compiler which aims to be compatible with Laravel's Blade view engine., (*1)

It is different though as it generates code which doesn't depent at all in this project to run, therefore it can compile templates offline once., (*2)

How to use it

The simplest way of using the compiler is by downloading the phar cli application., (*3)

wget https://github.com/crodas/SimpleView/raw/master/view-compiler.phar -O view-compiler
chmod +x view-compiler

Now you have the view-compiler script ready to run. It is very simple to use now:, (*4)

./view-compiler compile tests/views/

That would generate a single file tests/views/Templates.php with all our templates compiled., (*5)

require "tests/views/Templatas.php";

// By defualt its content will be print
Templates::get("if.tpl.php")->render(["name" => "cesar", "age" => 25]);

// but it can buffered as well
$buffer = Templates::get("if.tpl.php")->render(["name" => "cesar", "age" => 25], true);
echo $buffer;

You can optionally give a namespace to the generate template file to avoid class name conflicts, (*6)

./view-compiler compile tests/views/ -N demo

Syntax

It is compatible with Laravel's Blade view engine., (*7)

TODO

  1. Better error support
  2. Mode documentation

The Versions

09/03 2015

dev-develop

dev-develop

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

09/03 2015

dev-master

9999999-dev

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

09/03 2015

v0.1.37

0.1.37.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

07/03 2015

v0.1.36

0.1.36.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

27/01 2015

v0.1.35

0.1.35.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

07/10 2014

v0.1.34

0.1.34.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

04/10 2014

v0.1.33

0.1.33.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

27/09 2014

v0.1.32

0.1.32.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

25/09 2014

v0.1.31

0.1.31.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

17/09 2014

v0.1.30

0.1.30.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/09 2014

v0.1.29

0.1.29.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/09 2014

v0.1.28

0.1.28.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/09 2014

v0.1.27

0.1.27.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

21/05 2014

v0.1.26

0.1.26.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

20/05 2014

v0.1.25

0.1.25.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

20/05 2014

v0.1.24

0.1.24.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

20/05 2014

v0.1.23

0.1.23.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

20/05 2014

v0.1.22

0.1.22.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

20/05 2014

v0.1.21

0.1.21.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

19/05 2014

v0.1.20

0.1.20.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

19/05 2014

v0.1.19

0.1.19.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/04 2014

v0.1.18

0.1.18.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

29/03 2014

v0.1.17

0.1.17.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

29/03 2014

v0.1.16

0.1.16.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

13/03 2014

v0.1.15

0.1.15.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

12/03 2014

v0.1.13

0.1.13.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

12/03 2014

v0.1.12

0.1.12.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

01/11 2013

v0.1.11

0.1.11.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

31/10 2013

v0.1.10

0.1.10.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

25/10 2013

v0.1.9

0.1.9.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

25/10 2013

v0.1.8

0.1.8.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

23/10 2013

v0.1.7

0.1.7.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

22/10 2013

v0.1.6

0.1.6.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

21/10 2013

v0.1.5

0.1.5.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

13/10 2013

v0.1.4

0.1.4.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

27/08 2013

v0.1.3

0.1.3.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

27/08 2013

v0.1.2

0.1.2.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

10/08 2013

v0.1.1

0.1.1.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

07/08 2013

v0.1.0

0.1.0.0

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas