Blade Templates

Sage uses Laravel's Blade templating engine.

Passing data to templates

Sage includes a sage/template/{$class}/data filter that can be used to pass data to templates. This is the most simple way to pass data.

add_filter('sage/template/page/data', function (array $data) {
    $data['header_image'] = get_field('header_image');
    $data['header_content'] = get_field('header_content');
    return $data;
});

We’re available for hire!

Get started

Ready to checkout?