Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisnharvey/pyrocms-section-plugin
Use Laravel Blade style sections in your PyroCMS templates with this simple plugin
https://github.com/chrisnharvey/pyrocms-section-plugin
Last synced: about 4 hours ago
JSON representation
Use Laravel Blade style sections in your PyroCMS templates with this simple plugin
- Host: GitHub
- URL: https://github.com/chrisnharvey/pyrocms-section-plugin
- Owner: chrisnharvey
- Created: 2013-05-16T15:06:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T20:24:36.000Z (over 9 years ago)
- Last Synced: 2024-05-01T23:30:06.533Z (7 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyroCMS Section Plugin
_Deprecated: Looking for a new maintainer for this package. Open an issue if interested._Use Laravel Blade style sections in your PyroCMS templates with this simple plugin.
## Purpose
The purpose of this plugin to to allow you to declare a section in any of your
views and access it anywhere, no matter which comes first.So if you need to append some metadata to your header from your footer then
you can do so by delcaring your section in your footer and yielding the section
in your header.So you can yield a section anywhere in any view, even if that view is processed
before your section is declared.Sound good? Awesome! See below for a usage guide.
## Usage
This plugin is very simple to use.
### Declaring a section
To declare a section, use the following syntax.
```
{{ section:name }}
This is my section
{{ /section:name }}
````name` is whatever you want to call your section.
### Yielding a section
To yield a section, use the following syntax.
```
{{ section:name }}
```### Appending to a section
If you want to add to your section in multiple places, then you can append to your section using the same syntax which you used to declare it.