IHP Api Reference
Copyright(c) digitally induced GmbH 2021
Safe HaskellNone

IHP.Assets.ViewFunctions

Description

 
Synopsis

Documentation

assetPath :: (?context :: ControllerContext) => Text -> Text Source #

Adds a cache buster to a asset path

>>> assetPath "/keyhandlers.js"
"/keyhandlers.js?v=9be8995c-7055-43d9-a1b2-43e05c210271"

The asset version can be configured using the IHP_ASSET_VERSION environment variable.

assetVersion :: (?context :: ControllerContext) => Text Source #

Returns the assetVersion

>>> assetVersion
"9be8995c-7055-43d9-a1b2-43e05c210271"

The asset version can be configured using the IHP_ASSET_VERSION environment variable.