An open API service indexing awesome lists of open source software.

https://github.com/devaloka/templating

:sunny: [READ-ONLY] A partial template loader for WordPress as just a better replacement of get_template_part().
https://github.com/devaloka/templating

Last synced: about 1 year ago
JSON representation

:sunny: [READ-ONLY] A partial template loader for WordPress as just a better replacement of get_template_part().

Awesome Lists containing this project

README

          

# Templating Component

[![Latest Stable Version][stable-image]][stable-url]
[![Latest Unstable Version][unstable-image]][unstable-url]
[![License][license-image]][license-url]
[![Build Status][travis-image]][travis-url]

A partial template loader for WordPress as just a better replacement of
`get_template_part()`.

## Features

* Including a partial template as a new lexical environment
* Passing/Injecting variable(s) into a partial template
* Injecting global variable(s) into a WordPress template

## Installation

1. Install via Composer.

```sh
composer require devaloka/templating
```

[stable-image]: https://poser.pugx.org/devaloka/templating/v/stable
[stable-url]: https://packagist.org/packages/devaloka/templating

[unstable-image]: https://poser.pugx.org/devaloka/templating/v/unstable
[unstable-url]: https://packagist.org/packages/devaloka/templating

[license-image]: https://poser.pugx.org/devaloka/templating/license
[license-url]: https://packagist.org/packages/devaloka/templating

[travis-image]: https://travis-ci.org/devaloka/templating.svg?branch=master
[travis-url]: https://travis-ci.org/devaloka/templating