2017 © Pedro Peláez
 

spress-plugin spress-plugin-dataloader

Dataloader plugin for Spress

image

yosymfony/spress-plugin-dataloader

Dataloader plugin for Spress

  • Tuesday, February 13, 2018
  • by yosymfony
  • Repository
  • 2 Watchers
  • 5 Stars
  • 142 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Data loader plugin for Spress

Spress 2 ready, (*1)

Loads data located at ./src/data/ folder of your site., (*2)

This plugin requires Spress >= 2.0. If you are using Spress 1.x, go to 1.0.0 version of the plugin., (*3)

How to install?

Go to your site folder and input the following command:, (*4)

$ spress add:plugin yosymfony/spress-plugin-dataloader

How to use?

Go to your Spress site an create ./src/data folder. In this folder you can to create JSON, YAML, Markdown or Textfiles that will be available in site.data.<yourFilenameWithoutExtension>., (*5)

Example with an users array and a Json file:, (*6)

./src/data/
|- blogUsers.json

Example with an users array and a Yaml file (the extension yaml is valid too):, (*7)

./src/data/
|- blogUsers.yml

For markdown files the extension md or markdown are valid. Text file extensions are txt or text. Markdown and text files are available as string., (*8)

Access to this data in Twig templates:, (*9)

{% for theme in site.data.blogUsers %}
...
{% endfor %}

The Versions

13/02 2018

dev-master

9999999-dev

Dataloader plugin for Spress

  Sources   Download

MIT

The Requires

 

plugin json spress

13/08 2017

v2.1.0

2.1.0.0

Dataloader plugin for Spress

  Sources   Download

MIT

The Requires

 

plugin json spress

02/01 2016

v2.0.0

2.0.0.0

Dataloader plugin for Spress

  Sources   Download

MIT

The Requires

 

plugin json spress

11/01 2014

v1.0.0

1.0.0.0

Dataloader plugin for Spress

  Sources   Download

MIT

The Requires

 

plugin json spress