{"id":19483280,"url":"https://github.com/yosymfony/spress-plugin-dataloader","last_synced_at":"2025-04-25T16:31:59.618Z","repository":{"id":13061081,"uuid":"15741475","full_name":"yosymfony/spress-plugin-dataloader","owner":"yosymfony","description":"Load data located at _data/ folder of your site","archived":false,"fork":false,"pushed_at":"2018-02-13T22:25:20.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-21T01:41:45.422Z","etag":null,"topics":["json","loader","php","spress","yaml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yosymfony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-08T16:44:47.000Z","updated_at":"2024-04-21T01:41:45.423Z","dependencies_parsed_at":"2022-09-23T11:10:30.078Z","dependency_job_id":null,"html_url":"https://github.com/yosymfony/spress-plugin-dataloader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosymfony%2Fspress-plugin-dataloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosymfony%2Fspress-plugin-dataloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosymfony%2Fspress-plugin-dataloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosymfony%2Fspress-plugin-dataloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosymfony","download_url":"https://codeload.github.com/yosymfony/spress-plugin-dataloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224007877,"owners_count":17240294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","loader","php","spress","yaml"],"created_at":"2024-11-10T20:14:17.098Z","updated_at":"2024-11-10T20:14:18.542Z","avatar_url":"https://github.com/yosymfony.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Data loader plugin for Spress\n\n![Spress 2 ready](https://img.shields.io/badge/Spress%202-ready-brightgreen.svg)\n\nLoads data located at `./src/data/` folder of your site.\n\n**This plugin requires Spress \u003e= 2.0**. If you are using Spress 1.x, go to [1.0.0](https://github.com/yosymfony/spress-plugin-dataloader/tree/v1.0.0) version of the plugin.\n\n### How to install?\n\nGo to your site folder and input the following command:\n\n```bash\n$ spress add:plugin yosymfony/spress-plugin-dataloader\n```\n\n### How to use?\n\nGo to your Spress site an create `./src/data` folder. In this folder you can to create\n[JSON](https://en.wikipedia.org/wiki/JSON), [YAML](https://en.wikipedia.org/wiki/YAML), [Markdown](https://en.wikipedia.org/wiki/Markdown) or Textfiles that will be available in `site.data.\u003cyourFilenameWithoutExtension\u003e`.\n\nExample with an users array and a Json file:\n\n```\n./src/data/\n|- blogUsers.json\n```\n\nExample with an users array and a Yaml file (the extension `yaml` is valid too):\n\n```\n./src/data/\n|- blogUsers.yml\n```\n\nFor markdown files the extension `md` or `markdown` are valid.\nText file extensions are `txt` or `text`. \nMarkdown and text files are available as string. \n\nAccess to this data in Twig templates:\n\n```twig\n{% for theme in site.data.blogUsers %}\n...\n{% endfor %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosymfony%2Fspress-plugin-dataloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosymfony%2Fspress-plugin-dataloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosymfony%2Fspress-plugin-dataloader/lists"}