add hash() and array() into VMX::Template

databind
vitalif 2009-12-25 01:04:24 +00:00 committed by Vitaliy Filippov
parent ab5e431069
commit bb1cc23498
1 changed files with 4 additions and 0 deletions

View File

@ -626,6 +626,10 @@ sub function_join { fearr('join', @_) } *function_implode = \&fu
sub function_subst { fearr('exec_subst', @_) }
# sprintf
sub function_sprintf { fearr('sprintf', @_) }
# создание хеша
sub function_hash { shift; "{" . join(",", @_) . "}"; }
# создание массива
sub function_array { shift; "[" . join(",", @_) . "]"; }
# strftime
sub function_strftime