Skip to content

Instantly share code, notes, and snippets.

View frpaulas's full-sized avatar

Paul Sutcliffe frpaulas

View GitHub Profile
// Family Prayer
// Concerning the Service
// These devotions follow the basic structure of the Daily Office of the Church and are
// particularly appropriate for families with young children.
// The Reading and the Collect may be read by one person, and the other parts said in unison,
// or in some other convenient manner.
// Appropriate Opening Sentences, Psalms, Readings, and Collects are provided in each
// service. When desired, however, the Collect of the Day, or any of the Collects appointed in
// the Daily Offices, may be used instead. The Opening Sentences may be replaced by those
// appointed for various seasons in the liturgies for Morning and Evening Prayer.
# welp nearly grammar
@{%
const moo = require("moo");
// FYI \u201C - left curly quote; \u201D - right curly quote
const lexer = moo.compile({
ws: {match: /[ \t\n\r]+/, lineBreaks: true},
number: /[0-9]+/,
letters: /[a-zA-Z]+/,
times: /\*|x/,
pry(4)> conn |> put_layout("app.html") |> render("mp.html", model: model, page_controller: "prayer")
** (FunctionClauseError) no function clause matching in Phoenix.HTML.raw/1
The following arguments were given to Phoenix.HTML.raw/1:
# 1
{:ok,
"<div><div id='Psalm_102' class='req'> <h3>Psalm 102. <span class=\"ps_title\">Domine, exaudi.</span> </h3> </br> <ul class=\"psalm\"> <li class=\"ps_num\"><sup>1</sup></li> <li class=\"ps_first\">HEAR my prayer, O LORD, &#42; </li> </ul> <ul class=\"psalm\"> <li class=\"ps_second\">and let my crying come unto thee.</li> </ul> <ul class=\"psalm\"> <li class=\"ps_num\"><sup>2</sup></li> <li class=\"ps_first\">Hide not thy face from me in the time of my trouble; &#42; </li> </ul> <ul class=\"psalm\"> <li class=\"ps_second\">incline thine ear unto me when I call; O hear me, and that right soon.</li> </ul> <