This is probably a very naive question but I am brand new to Craft and as such, have no idea what to research and where...
I have a static website that is built with my own bespoke framework. We have recently decided to add a 'blog' page to this website and resultantly, I am exploring using Craft in order to save me time writing a bespoke solution from scratch.
From what I can see, Craft is extremely flexible and brilliant for professional developers like myself who refuse to work with the likes of WordPress. However, implementing into my framework may just be a step too far in regards to flexibility. Quite simply, I would like to know the following:
- Does craft allow me to make calls to get the stored data and then I manually handle the inserting of this data? e.g. Something like:
$blog_posts = $craft->getBlogPosts()
- If not, is there a way to include certain files at the beginning and end of templates that are outside the craft directory?
This is what I currently have: