In
All In
Let's be honest. It's no fun to log into the control panel to create a snippet. Even worse, the snippet isn't version controlled, and you'll probably forget to copy that snippet to the production environment the next time you push your template changes up. And then there's the issue of every snippet and every global variable being loaded from the database into memory every time EE fires up and runs its template engine. You could use an embed, but that would probably be overkill, because they are slow and they are handled late in the parse order (you want to use this code inside of other {exp:…} tags after all).
In solves the above problems. You can use In to Insert and/or Include template files. It is a lightweight alternative to snippets and embeds.
Features
Here are some of the great things that make In a win:
- It's Versatile. It can be used like a super-lightweight, on-demand, version-controllable snippet, or like an early-parsed embed. It's up to you.
- You Can Keep Your Workflow. Since In loads template files, you can keep your existing workflow, without the hassle of having to log in to create snippets or global variables.
- It's Version Control Friendly. In allows regular templates to be used as snippets, so now your changes can be preserved in Git.
- Templates As Snippets. Want to use a template as an embed in one page, and as a snippet in another? Do it (if you're into that sort of thing).
Please review the License Agreement and System Requirements.