livebinders.pug - Livebinders boards

View source code on Github

Binders by iframes

mixin livebinder(id)
  - if ("present" in attributes)
    - present = attributes.present;
    - delete attributes.present;
  - else
    - present = true;
  - if ("alt" in attributes)
    - alt = attributes.alt;
    - delete attributes.alt;
  - else
    - alt = true;
  iframe(src=`https://www.livebinders.com/play/play?id=${id}&present=${present}`
         frameborder="0")&attributes(attributes)
    - if (alt)
      | Your browser does not support iframes.
+livebinder(id)(present=true)

Insert a content-board from Livebinders.

Arguments:
  • id (integer, string) – Identificator of the binder. You can obtain it from a binder page url.

Usage

Input

+livebinder(2368302)(width="100%", height="400")

Output

<iframe src="https://www.livebinders.com/play/play?id=2368302&present=true" frameborder="0" width="100%" height="400">Your browser does not support iframes.</iframe>

Render