Timber WordPress 插件
描述
Timber helps you create fully-customized WordPress themes faster with more sustainable code. With Timber, you write your HTML using the Twig Template Engine separate from your PHP files. This cleans up your theme code so, for example, your PHP file can focus on being the data/logic, while your Twig file can focus 100% on the HTML and display.
Once Timber is installed and activated in your plugin directory, it gives any WordPress theme the ability to take advantage of the power of Twig and other Timber features.
Want to learn more?
- Project Page
- Timber on GitHub
Looking for Documentation?
- Timber Documentation
- Twig Reference (from SensioLabs)
Twig is the template language powering Timber; if you need a little background on what a template language is, Twig’s homepage has an overview - Video Tutorials
- Overview / Getting Started Guide
Need support?
- StackOverflow is for usage questions and troubleshooting
- GitHub issues are for reporting bugs and errors
技术支持
Please post on StackOverflow under the “Timber” tag. Please use GitHub issues only for specific bugs, feature requests and other types of issues.