just trying to understand how the classes work. If i add a HelloWorld.php then this class will run for the included /hello-world sample post
but data (public functions) are not passed to the template.
Is it possible to create a page/class for a specific single post?
for instance in Timber/Twig you can create eg single-103.twig where 103 is the post id, and this gets pulled into single.php ,
Timber::render( array( 'single-' . $post->ID . '.twig', 'single-' . $post->post_type . '.twig', 'single.twig' ), $context );)
which could be done easily with the Sage single.php
but in terms of the actual page /hello-world and the class HelloWorld, is there a way to inject that data (ie the controller functions) into a template?