View Source Bonfire.UI.Common.ContentAreas.Render (bonfire v0.3.5-classic-beta.4)

Renders editable page content, based on the content_type. Available content types:

  • html: WYSIWYG editor, standard HTML output (sanitized)
  • raw_html: Edit the HTML directly, not sanitized -- use carefully
  • text: Raw text, all HTML is escaped, basic contenteditable
  • image: Displays an image, can edit the URL and alt tag
  • background_image: Displays an image as a background image on a div, can edit the URL

Link to this section Summary

Functions

Removes special characters, keeps dashes and underscores, and replaces spaces with dashes. Also downcases the entire string.

Link to this section Functions

Removes special characters, keeps dashes and underscores, and replaces spaces with dashes. Also downcases the entire string.

iex> import Thesis.Utilities
iex> parameterize("Jamon is so cool!")
"jamon-is-so-cool"
iex> parameterize("%#d50SDF dfsJ FDS  lkdsf f dfka   a")
"d50sdf-dfsj-fds--lkdsf-f-dfka---a"
iex> parameterize(:this_is_a_test)
"this-is-a-test"