private static function init_templating()
    {
        // If no templating strategy has already been registered.
        if (!static::$container->has(Templating_Interface::class)) {
            // Add the default rendering engine.
            static::$container->add_singleton(
                \Snap\Templating\Standard\Standard_Strategy::class,
                function () {
                    return new \Snap\Templating\Standard\Standard_Strategy;
                }
            );

            static::$container->bind(\Snap\Templating\Standard\Standard_Strategy::class, Templating_Interface::class);

            static::$container->add(
                \Snap\Templating\Standard\Partial::class,
                function (Container $hodl) {
                    return $hodl->resolve(\Snap\Templating\Standard\Partial::class);
                }
            );
        }
    }
private static function init_templating()
    {
        // If no templating strategy has already been registered.
        if (!static::$container->has(Templating_Interface::class)) {
            // Add the default rendering engine.
            static::$container->add_singleton(
                \Snap\Templating\Standard\Standard_Strategy::class,
                function () {
                    return new \Snap\Templating\Standard\Standard_Strategy;
                }
            );

            static::$container->bind(\Snap\Templating\Standard\Standard_Strategy::class, Templating_Interface::class);

            static::$container->add(
                \Snap\Templating\Standard\Partial::class,
                function (Container $hodl) {
                    return $hodl->resolve(\Snap\Templating\Standard\Partial::class);
                }
            );
        }
    }
private static function init_templating ( ) { // If no templating strategy has already been registered. if ( ! static :: $ container -> has ( Templating_Interface :: class ) ) { // Add the default rendering engine. static :: $ container -> add_singleton ( \ Snap \ Templating \ Standard \ Standard_Strategy :: class , function ( ) { return new \ Snap \ Templating \ Standard \ Standard_Strategy ; } ) ; static :: $ container -> bind ( \ Snap \ Templating \ Standard \ Standard_Strategy :: class , Templating_Interface :: class ) ; static :: $ container -> add ( \ Snap \ Templating \ Standard \ Partial :: class , function ( Container $ hodl ) { return $ hodl -> resolve ( \ Snap \ Templating \ Standard \ Partial :: class ) ; } ) ; } }
Add the templating definitions to the container.

Adds the View class, and if no other templating strategy is present, adds and binds the default.

@since  1.0.0
Add the templating definitions to the container .