Genie.Assets.include_asset
— Functioninclude_asset(asset_type::Union{String,Symbol}, file_name::Union{String,Symbol}) :: String
Returns the path to an asset. asset_type
can be one of :js
, :css
. The file_name
should not include the extension.
Genie.Assets.css_asset
— Functioncss_asset(file_name::String) :: String
Path to a css asset. The file_name
should not include the extension.
Genie.Assets.js_asset
— Functionjs_asset(file_name::String) :: String
Path to a js asset. file_name
should not include the extension.
Genie.Assets.js_settings
— Functionjs_settings() :: string
Sets up a window.Genie.Settings
JavaScript object which exposes relevant Genie app settings from Genie.config
Genie.Assets.embedded
— Functionembeded(path::String) :: String
Reads and outputs the file at path
within Genie's root package dir
Genie.Assets.channels
— Functionchannels() :: String
Outputs the channels.js file included with the Genie package
Genie.Assets.channels_script
— Functionchannels_script() :: String
Outputs the channels JavaScript content within <script>...</script>
tags, for embedding into the page.
Genie.Assets.channels_support
— Functionchannels_support(channel = Genie.config.webchannels_default_route) :: String
Provides full web channels support, setting up routes for loading support JS files, web sockets subscription and returning the <script>
tag for including the linked JS file into the web page.
Genie.Assets.favicon_support
— Functionfavicon_support() :: String
Outputs the <link>
tag for referencing the favicon file embedded with Genie.