Skip to content

pymander/yasnippet-earneson-smarty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Smarty snippets for yasnippet

These are Smarty snippets for use with yasnippet. To use these, install nXhtml-mode and yasnippet, and then make sure you add the following to your Emacs initialization file:

(add-to-list 'auto-mode-alist '("\\.tpl$" . smarty-nxhtml-mumamo-mode))

All of the snippets are set up to be triggered only in smarty-mode, so you will need to type the opening bracket and the trigger key in order to activate them.

Please let me know if you have any suggestions, improvements, or changes. I know that the snippets are incomplete, but they represent most of the things that I needed to do with Smarty at the time.

Things left to do

Check for completeness of optional arguments

Make snippets for the rest of the Smarty keywords

What about html_checkboxes and the rest of those? They may be tricky, or the snippets might be harder to use than just writing the code manually. Can snippet groups be used here?

Possible drop-down list for ‘if’ conditionals?

This sounds pretty obnoxious to me. Could be an optional feature?

Snippets for elsif & cousins

Because elsif-TAB is faster than elsif}-RET-TAB? Yeah.

About

yasnippet templates for Smarty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages