Register Assetbundle in frontend template How can I register an assetbundle in a frontend template?
This is my bundle

namespace secondred\formbuilder\assetbundles\Formbuilder;

use Craft;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;

class FormbuilderAsset extends AssetBundle
{
    // Public Methods
    // =========================================================================

    /**
     * Initializes the bundle.
     */
    public function init()
    {
        // define the path that your publishable resources live
        $this-&gt;sourcePath = "@secondred/formbuilder/assetbundles/formbuilder/dist";

        // define the dependencies
        $this-&gt;depends = [
            CpAsset::class,
        ];

        // define the relative path to CSS/JS files that should be registered with the page
        // when this asset bundle is registered
        $this-&gt;js = [
            'js/Formbuilder.js',
        ];

        $this-&gt;css = [
            'css/Formbuilder.css',
        ];

        parent::init();
    }
}


And I can register it with in my controller without any problems
$this-&gt;view-&gt;registerAssetBundle(FormbuilderAsset::class);

But when I do 

{% do view.registerAssetBundle("secondred\\formbuilder\\assetbundles\\formbuilder\\FormbuilderAsset") %}


nothing happens.. no request, no error, nothing in network tab and no html is added to the page

Update
I found the solution. If you are in a frontend ressource you need to call the {{ endBody() }} method in order to get the bundles
Answer:
In order to render all the scripts in your registered assetbundles you need to call this function

{{ endBody() }}


somewhere in your page (preferred at the end of the body)