eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 313 forks source link

Page context #140

Closed jammon closed 9 years ago

jammon commented 9 years ago

This changes the behavior of Site and Page in several subtle aspects.

krallin commented 9 years ago

Hi @jammon, and thanks for taking the time to contribute,

I commented on the times themselves, but here are more generic comments:

Note that we might not want to risk breaking compatibility with existing sites.

Cheers,

jammon commented 9 years ago
krallin commented 9 years ago

Thanks,

I'll look into those changes into more detail over the weekend (don't have more time right now unfortunately).

Regarding the behavior change to the context system. Unfortunately there may be users relying on the old system, and I'm not big on just breaking backwards compatibility like this.

I understand your expectations might differ (and I'd personally share your POV here), and that the Python Markdown extension processes metadata differently, but that doesn't mean Cactus has to do so as well (we don't really use Python Markdown for starters).

I think the right approach here would be to break this system out of Page and into a plugin, and make it optional but enabled by default.

Thoughts?

jammon commented 9 years ago

The specs of markdown2 metadata extra look even different.

Putting the metadata / page context into a plugin is probably the right way.

krallin commented 9 years ago

I'll close this PR since you're working on #141 instead. Thanks!