tags/if_tag

Types

This adds the tag, which is used to conditionally render sections.

Usage:

Admin items

pub type IfTag {
  IfTag(name: String)
}

Constructors

  • IfTag(name: String)

Functions

pub fn create_sections(
  tagg: Tagg,
  doc_section: Section,
  context: Context,
) -> Result(List(Section), TaggError)
pub fn get_if_tag(
  tag_name: String,
  attrs: Dict(String, String),
  context: Context,
) -> Result(IfTag, TaggError)

get the attributes of the tag, with error handling in case attributes don’t exist

Search Document