Awee

ext-prepend

FilenamePrependExt inserts an additional extension before the existing file extension.

FilenamePrependExt inserts an additional extension before the existing file extension.

Input

string

Parameters

#TypeRequired
0stringyes

Returns

string

Examples

Mark a stylesheet as minified

Input

file_path = "assets/styles.css"

Template

{{ file_path | ext-prepend:'min' }}

Output

assets/styles.min.css

Tag a script as minified

Input

source = "app.js"

Template

{{ source | ext-prepend:'min' }}

Output

app.min.js

How is this guide?

On this page