Blade Templates

Introduction

The Assely framework fully utilizes Laravel Blade Templates Engine. Please visit official documentation for a comprehensive descriptions.

WordPress Directives

Assely framework brings a few ready to use Blade Directives that facilitate some of WordPress standard templates functions.

Head Action

<head>
    <!-- ... head elements -->

    @wphead()
</head>

Directive for wp_head. Always have this directive just before the closing tag of your theme, or you will break many plugins.

Footer Action

<body>
    <!-- ... body elements -->

    @wpfooter()
</body>

Directive for wp_footer. Always have this directive just before the closing tag of your theme, or you will break many plugins.

Cache Block

@cache($key, $arguments)
    {{-- content --}}
@endcache

It caches content inside the directive. Read detailed description in Cache chapter.

Eval Shorcodes

@shortcodes()
    [my_shortcode]
@endshortcodes

All shortcodes present inside this block will be evaluated.