Assets helper

lesli_stylesheet_path

Return a string path to load the template stylesheet by default we always return the latest version of the template

params:

returns: string: The full public path to the specified stylesheet (e.g., /assets/application.css).

Usage

Get path to main application stylesheet from main app

lesli_stylesheet_path() 

Result: /assets/application.css


Get path to main application stylesheet from an engine

lesli_stylesheet_path(:lesli) 

Result: /assets/lesli/application.css


Get specific stylesheet from engine

lesli_stylesheet_path(:lesli_assets, 'templates/application')

Result: /assets/lesli_assets/templates/application.css

 Edit this page

Last Update: 2025/11/24