Download the PHP package wireframe-framework/wireframe-renderer-latte without Composer

On this page you can find all versions of the php package wireframe-framework/wireframe-renderer-latte. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wireframe-renderer-latte

Latte renderer for the Wireframe output framework

This module is an optional renderer add-on for the Wireframe output framework, adding support for the Latte templating engine.

Note: this module is currently considered an early beta release. If you run into any problems, please open an issue at https://github.com/wireframe-framework/WireframeRendererLatte/issues.

Installing the module

This module can be installed just like any other ProcessWire module, by cloning or downloading the module files to your modules directory. Alternatively you can install it via Composer:

Basic usage

First of all, you need to install both Wireframe and WireframeRenderLatte, and then set up Wireframe (as instructed at https://wireframe-framework.com/getting-started/). Once that's done, you can open the bootstrap file (wireframe.php) and instruct Wireframe to use the Latte renderer:

Latte templates

Once you've told Wireframe to use the Latte renderer, by default it will attempt to render all your views, layouts, and components using Latte. File extension for Latte templates is .latte, though you can override this if you prefer something else (see examples in the "Basic usage" section).

Note that if a Latte file can't be found, Wireframe will automatically fall back to native (.php) file. This is intended to ease migrating from PHP to Latte, and also makes it possible for Latte and PHP view files to co-exist.

If you need help with Latte and its syntax, visit https://latte.nette.org/.

Includes (partials)

Latte provides a function for including other templates ({include 'some.latte'}), and in the context of Wireframe this translates best to the concept of partials. As such using this function looks for include files from the Wireframe partials directory:

Extending Latte

If you want to add filters, functions, tags, etc. to Latte, you can access the Latte Engine by hooking into WireframeRendererLatte::initLatte:


All versions of wireframe-renderer-latte with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
wireframe-framework/processwire-composer-installer Version ^1.0.0
latte/latte Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wireframe-framework/wireframe-renderer-latte contains the following files

Loading the files please wait ....