
內容簡介
Timber 讓您能使用更持久的程式碼更快速地建立自訂 WordPress 佈景主題。透過 Timber,您可以使用 Twig Template Engine 撰寫 HTML,這可與您的 PHP 檔案分離。這樣有助於整理您的佈景主題程式碼,例如,您的 PHP 檔案就可以專注於資料/邏輯運算,而 Twig 檔案可以百分之百專注於 HTML 和顯示。
一旦 Timber 在您的外掛目錄中安裝和啟用,您的任何 WordPress 佈景主題都可以利用 Twig 和其他 Timber 功能的優勢。
想了解更多嗎?
專案網頁
Timber GitHub
尋找文件?
Timber 文件
Twig 參考資料(來自 SensioLabs)
Twig 是 Timber 動力的模板語言;如果您需要了解模板語言的背景,Twig 的首頁提供了簡介
影片教學
概觀/入門指南
需要支援嗎?
StackOverflow 可用於使用問題和疑難排解
GitHub 問題 可用於報告錯誤和問題
支援
請在 StackOverflow 上按照 “Timber” 標籤發佈。請僅在特定的錯誤、功能請求和其他問題上使用 GitHub 問題。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
With the upcoming release of Timber 2.0, we will not release a 2.0 version and beyond as a plugin, but only as a Composer package. We advise everyone to switch to the Composer based install as soon as possible.
You will find an extensive list with guides and the reasons why we are not going to release Timber 2.0 as a plugin anymore.
Switching to the Composer based version
Announcement: Dropping support for the plugin version of Timber
Guide: How do I switch over from the plugin version to the Composer based version of Timber?
Backstory: Why we are dropping support for the plugin in the first place
GitHub issue: Roadmap for Timber 2.0
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
Support
Please post on StackOverflow under the “Timber” tag. Please use GitHub issues only for specific bugs, feature requests and other types of issues.
