Xeo.Page (xeo v0.1.1)

A structure to hold the html data for a given page.

Page Fields

Basic Tags

  • :title
  • :description
  • :canonical

Open Graph Tags

  • :og_type
  • :og_title
  • :og_description
  • :og_image
  • :og_site_name
  • :og_url

Twitter Cards

  • :twitter_card
  • :twitter_site
  • :twitter_title
  • :twitter_description
  • :twitter_url
  • :twitter_image

Summary

Types

t()

The content for a given tag

Functions

Generate html tags from the given struct

Types

@type t() :: %Xeo.Page{
  canonical: tag_content(),
  description: tag_content(),
  og_description: tag_content(),
  og_image: tag_content(),
  og_site_name: tag_content(),
  og_title: tag_content(),
  og_type: tag_content(),
  og_url: tag_content(),
  title: tag_content(),
  twitter_card: tag_content(),
  twitter_description: tag_content(),
  twitter_image: tag_content(),
  twitter_site: tag_content(),
  twitter_title: tag_content(),
  twitter_url: tag_content()
}
Link to this type

tag_content()

@type tag_content() :: nil | String.t()

The content for a given tag

Functions

Link to this function

html(page, pad)

@spec html(t(), pos_integer()) :: String.t()

Generate html tags from the given struct