Extracting Smarty variables from source

- 23 Aug 2011

You can extract all of the variables in use from a Smarty template using a simple call to *nix grep with a trivial regex expression. Here is the command-

grep -o "\{\$[-_a-zA-Z0-9]*\}" my-template.tpl

Related Posts: Installing vzdump on CentOS 5.4 (32-bit) » Dumping Addresses from phplist » Adding NRPE (Nagios) to CentOS \/ RHEL Servers » Adding the REMI Repository to CentOS / RHEL / RedHat » How to Re-number an OpenVZ Container from one CTID to another »

comments powered by Disqus