btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

Function call hello() compiles to $hello() #50

Closed thuesing closed 8 years ago

thuesing commented 9 years ago

Functions, that are not defined in the current mammouth file, e.g. from required sources, are not recognized as functions. E.g.

{{
require 'my_hello_function.php'
hello()
}}

compiles to

<?php
require 'my_hello_function.php';
$hello();

I'am using http://github.com/btwael/mammouth/tarball/master.

Great project, keep on the good work!

btwael commented 9 years ago

Thank you for reporting this bug, I'm working to fix in the 3rd version of Mammouth https://github.com/btwael/mammouth/tree/v3.x

btwael commented 8 years ago

Mammouth now can read from other mammouth and php files, use it from your terminal