jsmart icon indicating copy to clipboard operation
jsmart copied to clipboard

Dump plugin

Open hparadiz opened this issue 7 years ago • 2 comments

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.

hparadiz avatar Feb 09 '18 02:02 hparadiz

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.

umakantp avatar May 27 '21 08:05 umakantp

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.

hparadiz avatar May 27 '21 18:05 hparadiz