.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. _viewHelpers MakeSlugViewHelper ---------------------- ViewHelper to render slug for requested route Properties ^^^^^^^^^^^^^^^^^^^^^^^ .. t3-field-list-table:: :header-rows: 1 - :Name: Name: :Type: Type: :Description: Description: - :Name: for :Type: string :Description: Route name - :Name: with :Type: array :Description: Route parameters Example ^^^^^^^^^^^^^ .. code-block:: yaml :linenos: client_show: path: api/client/{client} controller: Vendor\Demo\Controller\ClientApiController::show .. code-block:: html {namespace route = LMS\Routes\ViewHelpers} Show // or initialize a JS constant Output: :: api/client/2 .. code-block:: javascript ... readResource(showClientUrl).then(function (client) { console.log(client); }); ...