jsmart
jsmart copied to clipboard
Dump plugin
Usage:
{dump}Shows all variables available.{dump mixed $somevar[, mixed $... ]}— Dumps information about a variable
This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.
What is the reason for having this? we do not want to have extra functions which are not part of smarty. You can use debug_print_var modifiers.
Dwoo is an alternative engine for Smarty syntax and has it built in
https://dwoo.org/plugins/functions/dump.html
I was using jsmart in 2018 to use JavaScript with Dwoo templates but that was long ago at a job I no longer work at so I don't really need it anymore.