how can i create my own themeing tags/language or whatever its called like shopify is using? smarty has it also, sorry i dont know what its called.

for example in shopify if you type 

```
    <h1> {{ product.title }} </h1> 
- this will print out the products title. what im wondering is how can i create my own language of this type using php?

```