Add function / parameter feature which allows to introduce calculated function which are replaced when we call the template. Accept multiple parameters and use local/global scopes.

Note: need to improve evalfunction by creating new class which contains several kinds of functions

Signed-off-by: Roger Manich <roger.manich@gmail.com>