Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use YAML parser for meta-data evaluation #259

Merged
merged 1 commit into from
Jul 27, 2015

Conversation

Schlaefer
Copy link
Member

The build in meta-data evaluation is going to use a YAML parser. "Normal" meta-data (title, date) should be used and work as before. My main intention is to add support for nested page properties. Allowing structured data could provide great new opportunities. E.g. it can be utilized (by plugins) to provide or alter a configuration on per page basis. For example:


---
title: Overview
…

pagination:
    items per page: 10
    sort:
        by: date
        order: desc    
---    

A difference between YAML and Phile is that Phile sanitizes the meta-data keys (lowercase, whitespace to underscore, …). We should keep it that way to provide backwards-compatibility (for now).

@Schlaefer Schlaefer modified the milestone: 1.6.0 Jul 8, 2015
Schlaefer added a commit that referenced this pull request Jul 27, 2015
use YAML parser for meta-data evaluation
@Schlaefer Schlaefer merged commit c0c9e48 into PhileCMS:develop Jul 27, 2015
@Schlaefer Schlaefer deleted the feature/yamlMeta branch August 2, 2015 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants