Lift snippet subpackages February 22, 2012
After a while lift project becomes big enough and you will probably want to break your files into subpackages here's what you need to do:
- Add your default snippet package for example if your base snippet package is my.project.snippet then in your boot file add the line: LiftRules.addToPackages("my.project")
- Create subpackages under your snippet package and put your scala code in there.
- In your html5 templates point to your snippets by using subpackage/SnippetName like the following: <div data-lift="subpackage/SnippetName"></div>