xy2z / capro

PHP8 static site generator
MIT License
8 stars 2 forks source link

View: Check if $self is collection or page #25

Closed xy2z closed 1 year ago

xy2z commented 1 year ago

For checking if the current view is a collection or a page...

Eg. $self->is_collection('posts'), is_page(), or something... should also work for View Templates.