stakx-io / stakx

An opinionated, powerful, and simple static website generator built in PHP
https://stakx.io/
MIT License
14 stars 3 forks source link

Allow Sass Static PageViews to recompile themselves #86

Closed allejo closed 5 years ago

allejo commented 5 years ago

Summary

Q A
Bug fix? yes
New feature? yes
BC breaks? yes
Deprecations? no
Fixed issues Fixes #79

Description

Instead of calling the Scss compiler when the PageManagerPostProcess event is fired, call it when the CompilerPostRenderStaticPageView event is called; this event is called every time the Static PageView has been requested to be compiled.

Changes

A large change in this PR is that CompileProcessPostRenderPageView and CompileProcessPreRenderPageView has been split up into specialized events for each PageView type with more useful information with regards to which PageView is actually being compiled. This change breaks BC but since 0.2.0 is still in alpha, it's safe to break.

Check List