Genie.Renderer.renderFunction
render

Abstract function that needs to be specialized by individual renderers.

Genie.Renderer.hasrequestedFunction
hasrequested(content_type::Symbol) :: Bool

Checks wheter or not the requested content type matches content_type.

Genie.Renderer.injectvarsFunction
injectvars() :: String

Sets up variables passed into the view, making them available in the generated view function.

Genie.Renderer.view_file_infoFunction
view_file_info(path::String, supported_extensions::Vector{String}) :: Tuple{String,String}

Extracts path and extension info about a file

Genie.Renderer.vars_signatureFunction
vars_signature() :: String

Collects the names of the view vars in order to create a unique hash/salt to identify compiled views with different vars.

Genie.Renderer.m_nameFunction
m_name(file_path::String)

Generates module name for generated HTML+Julia views.

Genie.Renderer.build_is_staleFunction
build_is_stale(file_path::String, build_path::String) :: Bool

Checks if the view template has been changed since the last time the template was compiled.

Genie.Renderer.build_moduleFunction
build_module(content::String, path::String, mod_name::String) :: String

Persists compiled Julia view data to file and returns the path

Genie.Renderer.preparebuildsFunction
preparebuilds() :: Bool

Sets up the build folder and the build module file for generating the compiled views.

Genie.Renderer.purgebuildsFunction
purgebuilds(subfolder = BUILD_NAME) :: Bool

Removes the views builds folders with all the generated views.

Genie.Renderer.@varsMacro
@vars

Utility macro for accessing view vars

@vars(key)

Utility macro for accessing view vars stored under key

@vars(key, value)

Utility macro for setting a new view var, as key => value

Genie.Renderer.set_negotiated_contentFunction
set_negotiated_content(req::HTTP.Request, res::HTTP.Response, params::Dict{Symbol,Any})

Configures the request, response, and params response content type based on the request and defaults.

Genie.Renderer.negotiate_contentFunction
negotiate_content(req::Request, res::Response, params::Params) :: Response

Computes the content-type of the Response, based on the information in the Request.