Comments (6)
Hi @bzerangue
sorry for the late response, I haven't seen this issue before.
Would you use the YAML for configuration stuff or for the meta section on each page?
Can you provide some example code or projects where YAML is used for meta configuration?
from phile.
@NeoBlack, no worries. I would use the YAML for the Meta Section YAML Front Matter and for separate YAML Data Files (if possible). This would make it quite easy to migrate from a Jekyll site or possibly a Statamic site.
With YAML Front Matter (YAML Meta Data)... this is would be acceptable for meta data...
---
title: Skyfall
published: true
layout: post
tags:
- skyfall
- james bond
- 007
- daniel craig
podcast:
file: http://domain.com/podcasts/skyfall.mp3
length: 0:46:01
filesize: 36370560
---
Also, in regard to YAML Data Files, I envision it how Jekyll has it setup... for instance if you have a staff list.
from phile.
@bzerangue sorry again for the late response, I was very busy the last months.
I think we could change the meta parser to service, this way it is be possible to replace the meta parser by a plugin.
I will talk to @james2doyle about this issue, but I think a service is a good solution and make phile more flexible.
from phile.
I'm down for the meta-parser as a service. Makes sense. Maybe there are other ways to do meta. Like a same-filename json or something
from phile.
ok, I will open an issue for the global changes in the architecture.
I will take a look at it tomorrow. Maybe the change is easy, then I would implement it shortly, so we could add this change to 0.9.3 and release this version next week.
The codings for a YAML Front Matter Config plugin can be done after the release of 0.9.3
from phile.
"Someone" will have to make a phileYAMLMeta plugin now after #76 and #77. So I will close this.
from phile.
Related Issues (20)
- Internal Server Error [SOLVED] HOT 1
- Removing subfolders from links with htaccess HOT 3
- Phile plugins don't install properly using composer HOT 2
- Error when symlinking content directory HOT 2
- [TASK] Release 1.8
- [TASK] Put up phile homepage again HOT 1
- Proposal for further core refactoring HOT 1
- [FEATURE] Set error page as config setting
- [BUG] "composer create-project --no-dev phile-cms/phile" doesn't allow further composer usage
- [FEATURE] Update minimum PHP requirement to version 7.1.0
- [FEATURE] Don't use file cache out of the box HOT 3
- Missing some documentation and project status? HOT 1
- PHP 7.4+ deprecates array_key_exists() on objects HOT 1
- Twig variables HOT 1
- help on contact form plugin HOT 1
- Overriding vendor michelf/php-markdown
- PHP 8 HOT 15
- PHP 8/Phile 2 - Plugin Updates Status & Requests
- Pages without meta block are rendered empty
- PHP 8.2 dynamic properties ErrorException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phile.