Linux 软件免费装
Banner图

Timber

开发者 jarednova
更新时间 2024年6月6日 20:33
PHP版本: 5.3.0 及以上
WordPress版本: 6.5.2
版权: GPLv2 or later
版权网址: 版权信息

标签

templates twig template engine

下载

0.21.2 0.21.3 0.21.9 0.22.0 0.22.1 0.22.2 0.22.3 0.22.4 0.22.6 1.0.0 1.0.1 1.0.3 1.1.1 1.1.10 1.1.12 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.7.1 1.11.0 1.14.0 1.15.0 1.15.1 1.15.2 1.16.0 1.17.0 1.18.0 1.18.2 1.2.0 1.2.3 1.2.4 1.3.0 1.3.2 1.3.3 1.3.4 1.4.1 1.5.0 1.5.2 1.6.0 1.7.0 1.7.1 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.19.2 1.20.0 1.21.0 1.18.1 0.15.2 0.10.3 0.10.6 0.10.7 0.21.10 0.21.6 1.13.0 1.23.0 1.0.4 1.0.5 0.20.2 0.20.3 0.20.4 0.20.6 0.20.7 0.20.9 0.21.4 0.21.5 0.22.5 0.12.0 0.12.1 0.12.2 0.13.0 0.13.5 0.14.0 0.14.1 0.15.0 0.15.1 0.15.3 0.15.5 0.16.0 0.16.1 0.16.2 0.16.3 0.16.4 0.16.5 0.16.6 0.16.7 0.17.0 0.17.1 0.17.2 0.18.0 0.18.1 0.19.0 0.19.1 0.19.2 0.20.0 0.20.1 1.10.0 1.2.1 1.2.2 1.4.0 0.16.8 0.21.1 1.1.0 1.1.9 0.20.5 0.20.8 0.21.0 0.21.7 1.1.8 1.22.0 1.22.1 0.10.2 0.10.4 0.10.5 0.11.0 0.20.10 0.21.8 1.0.2 1.1.11 1.12.0 1.19.0 1.19.1 1.23.1 1.8.4

详情介绍:

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 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? Looking for Documentation? Need support?

安装:

  1. 通过 WordPress 的“插件”菜单激活插件
  2. For an example, try modifying your home.php or index.php with something like this:
$context = array(); $context['message'] = 'Hello Timber!'; Timber::render( 'welcome.twig', $context ); Then create a subdirectory called views in your theme folder. Then create a file views/welcome.twig with these contents: ` {{ message }} ` When you visit this page, you'll see both the data from PHP come through as you've marked it up. For more, continue with the official Getting Started Guide

屏幕截图:

  • With Timber, you write Twig files that are super-clear and HTML-centric.

常见问题:

Can it be used in an existing theme?

You bet! Watch these Video Tutorials to see how.

Is it used in production?

Tens of thousands of sites now use Timber. You can check some of them out in the Showcase.

Doesn't this all make WordPress harder since there’s more to learn?

Does jQuery make JavaScript harder? Yes, it’s an extra piece to learn — but it super-charges your ability to write unencumbered JavaScript (and prevents you from having to learn lots of the messy internals). If your answer is "jQuery sucks and everyone should learn how to write vanilla JavaScript or they’re rotten stupid people," this tool isn’t for you.

Oh, Timber is simple code so it’s for making simple themes

Whatever. It simplifies the silly stuff so that you can focus on building more complicated sites and apps. jQuery simplifies Javascript, but you can still use the full range of JavaScript’s abilities.

Will you support it?

At Upstatement we’re using it in dozens of sites (and many more planned) -- thousands of other developers are using it too. This isn’t going anywhere. Twig is the chosen language for other PHP platforms like Symfony, Drupal 8 and Craft.

更新日志:

1.23.1 1.23.0 Full Changelog: https://github.com/timber/timber/compare/1.22.1...1.23.0 1.22.1 1.22.0 1.21.0 1.20.0 1.19.2 Fixes and improvements 1.19.1 Fixes and improvements Full Changelog: https://github.com/timber/timber/compare/1.19.0...1.19.1 1.19.0 Changes for Theme Developers Fixes and improvements 1.18.2 Fixes and improvements 1.18.1 Fixes and improvements 1.18.0 Changes for Theme Developers Fixes and improvements 1.17.0 Changes for Theme Developers Fixes and improvements 1.16.0 Changes for Theme Developers 1.15.2 Fixes and improvements 1.15.1 Fixes and improvements 1.15.0 Fixes and improvements 1.14.0 Fixes and improvements 1.13.0 Fixes and improvements 1.12.0 Fixes and improvements 1.11.0 General Note 1.10.1 Fixes and improvements 1.10.0 Important Note If you use WPML, please do not upgrade to 1.10.* yet. Because WPML also uses Twig, there is a conflict with loading Twig versions. They will release an update soon to keep things in sync. Until then, please use version 1.9.2 Fixes and improvements 1.9.5 1.9.4 1.9.3 1.9.2 Changes for Theme Developers 1.9.1 Changes for Theme Developers 1.9.0 Timber now requires PHP 5.6 or greater. While Timber may work on PHP 5.5 and older versions; support will no longer be maintained in future versions. Changes for Theme Developers 1.8.4 Fixes and improvements 1.8.3 Fixes and improvements 1.8.2 Changes for Theme Developers 1.8.1 Fixes and improvements 1.8.0 Changes for Theme Developers 1.7.1 Fixes and improvements 1.7.0 Fixes and improvements 1.6.0 Changes for Theme Developers 1.5.2 Fixes and improvements 1.5.1 Fixes and improvements 1.5.0 Fixes and improvements 1.4.1 Fixes and improvements 1.4.0 Fixes and Improvements 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7.1 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.22.6 0.22.5 0.22.4 0.22.3 0.22.2 0.22.1 0.22.0 0.21.10 0.21.9 0.21.8 0.21.7 0.21.6 0.21.5 0.21.4 0.21.3 0.21.2 0.21.1 0.21.0 0.20.10 0.20.9 0.20.8 0.20.7 0.20.6 0.20.5 0.20.4 0.20.3 0.20.2 0.20.1 0.20.0 0.19.2 0.19.1 0.19.0 0.18.1 0.18.0 0.17.2 0.17.1 0.17.0 0.16.8 0.16.7 0.16.6 0.16.5 0.16.4 0.16.3 0.16.2 0.16.1 0.16.0 0.15.5 0.15.4 0.15.3 0.15.2 0.15.1 0.15.0 0.14.1 0.14.0 0.13.5 0.13.0 0.12.2 0.12.1 0.12.0 0.11.0 0.10.7 0.10.6 0.10.5 0.10.4 0.10.3 0.10.2 0.10.1