Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump plugin #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dump plugin #27

wants to merge 1 commit into from

Conversation

hparadiz
Copy link

@hparadiz hparadiz commented Feb 9, 2018

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 hparadiz mentioned this pull request Feb 9, 2018
@umakantp
Copy link
Owner

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.

@hparadiz
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants