PHPackages                             mario-deluna/tattoo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mario-deluna/tattoo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mario-deluna/tattoo
===================

A simple hyper text programming language

77PHP

Since Oct 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mario-deluna/Tattoo)[ Packagist](https://packagist.org/packages/mario-deluna/tattoo)[ RSS](/packages/mario-deluna-tattoo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Tattoo Language
===============

[](#tattoo-language)

Tattoo is a simple hyper text programming / template language that renders into HTML.

[![Build Status](https://camo.githubusercontent.com/8f39fb23df23a7f87ad9b317cbf1a6ecd13e8375fa42e1c5588663683fbb591b/68747470733a2f2f7472617669732d63692e6f72672f6d6172696f2d64656c756e612f546174746f6f2e737667)](https://travis-ci.org/mario-deluna/Tattoo)![Packagist](https://camo.githubusercontent.com/307ca95ece303755a3f18382d91c670d2ad22e86342d400fc50303f4f3245113/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6172696f2d64656c756e612f746174746f6f2e737667)![Packagist](https://camo.githubusercontent.com/adeafe0401b22f1f229bdaf0fa91f5431e0d2e2207c68f99782522e2ed4e04d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6172696f2d64656c756e612f746174746f6f2e737667)![GitHub release](https://camo.githubusercontent.com/fa2c46996b5732b680bdb3c4505b473b3c3721a2f29294a92ccea7b9f1d49fbc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d6172696f2d64656c756e612f746174746f6f2e737667)

```
h1 => 'Welcome to Tattoo :)'

```

*There are still PHP5.3 users and I don't want to discriminate these outlaws. Means Tattoo works from 5.3 to 7.*

**Tattoo is not finished but in heavy development.**

Tell me more!
-------------

[](#tell-me-more)

A programming language written in PHP that compiles into PHP? When all you have is a hammer everything starts to look like a nail hu?

There is no real use case where you would build a stand alone Tattoo application. So making Tattoo work as a library seemed to be best way to go. Why PHP? Huge community, pretty fast and Im used to the syntax.

Installation
------------

[](#installation)

Composer, whoop whoop.

```
$ composer require mario-deluna/tattoo

```

Usage
-----

[](#usage)

```
$tattoo = new Tattoo\Tattoo(array('cache' => 'path/to/my/cache/dir/'));

echo $tattoo->render('/path/to/a/tattoofile.tto', array(
	'name' => $_GET['name'],
));
```

```
h1.page-title => 'Hello ' % @name

```

The great goal
--------------

[](#the-great-goal)

After years of developing web applications I've got kind of sick that the only thing that always stayed a mess was the HTML markup. So there was this idea stuck in my head of a templating engine that actually was a programming language.

Let me show you an example:

```
