Skip to content

Instantly share code, notes, and snippets.

@frpaulas
Created September 20, 2018 21:36
Show Gist options
  • Save frpaulas/1615375ba25af182c59bae4a248497eb to your computer and use it in GitHub Desktop.
Save frpaulas/1615375ba25af182c59bae4a248497eb to your computer and use it in GitHub Desktop.
// 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.
// The Psalms and Readings may be replaced by those appointed in:
// the Sunday, Holy Days and Commemoration Lectionary; or
// the Daily Office Lectionary; or
// some other manual of devotion which provides daily selections for the Church Year.
// A concluding sentence from Morning or Evening Prayer may be used at the end of any of
// these devotions.
export var familyPrayer = [
[ "title", "Family Prayer" ]
, ['section', 'In the Morning']
, ['rubric', 'The following or some other verse of Scripture is said']
, [ 'song', 'Psalm 51:15', "" // song has alternate name
, 'You shall open my lips, O Lord,'
, 'and my mouth shall show forth your praise.'
]
, [ 'psalm', 'Psalm 51:10-12'
, ['Make me a clean heart, O God, *', 'and renew a right spirit within me.']
, ['Cast me not away from your presence *', 'and take not your holy Spirit from me.']
, ['O give me the comfort of your help again *', 'and strengthen me with your willing Spirit.']
, ['Glory be to the Father, and to the Son, and to the Holy Spirit: *', 'as it was in the beginning, is now, and ever shall be, world without end. Amen.']
]
, [ 'rubric', 'Alternately, Psalm 5:1-3 may be used.']
, [ 'alternatePsalm', 'goes here', []]
, [ 'section', 'A Reading from Holy Scripture' ]
, [ 'scripture'
, 'Blessed be the God and Father of our Lord Jesus Christ! According to his great mercy, he has caused us to be born again to a living hope through the resurrection of Jesus Christ from the dead.'
, '1 Peter 1:3'
]
, ['rubric', 'or this']
, ['scripture'
, 'Give thanks to the Father, who has qualified you to share in the inheritance of the saints in light. He has delivered us from the domain of darkness and transferred us to the kingdom of his beloved Son, in whom we have redemption, the forgiveness of sins.'
, 'Colossians 1:12-14'
]
, [ 'rubric', 'or this' ]
, [ 'scripture'
, 'If you have been raised with Christ, seek the things that are above, where Christ is, seated at the right hand of God. Set your minds on things that are above, not on things that are on earth. For you have died, and your life is hidden with Christ in God. When Christ who is your life appears, then you also will appear with him in glory.'
, 'Colossians 3:1-4'
]
, [ 'rubric', 'A period of silence may follow.' ]
, [ 'rubric', 'Prayers may be offered for ourselves and others.']
, [ 'rubric', 'A hymn or canticle may be used; the Apostles’ Creed may be said.']
, [ 'section', 'The Lord’s Prayer']
, [ 'theLordsPrayer' ]
, [ 'section', 'The Collect']
, [ 'collect'
, 'O Lord, our heavenly Father, almighty and everlasting God, you have brought us safely to the beginning of this day: Defend us by your mighty power, that we may not fall into sin nor run into any danger; and that guided by your Spirit, we may do what is righteous in your sight; through Jesus Christ our Lord.'
, 'Amen.'
]
, [ 'section', 'At Midday']
, [ 'rubric', 'The following or some other verse of Scripture is said']
, [ 'scripture', 'Blessed be the God and Father of our Lord Jesus Christ, who has blessed us in Christ with every spiritual blessing in the heavenly places.'
, 'Ephesians 1:3'
]
, [ 'psalm', 'Psalm 113:1-4'
, [ 'Praise the LORD. Sing praises you servants of the LORD; *', 'O praise the Name of the LORD.' ]
, [ 'Blessed be the Name of the LORD, *', 'from this time forth for evermore.' ]
, [ 'The Lord’s Name be praised: *', 'from the rising up of the sun to the going down of the same.' ]
, [ 'The LORD is high above all nations, *', 'and his glory above the heavens.']
, [ 'Glory be to the Father, and to the Son, and to the Holy Spirit: *', 'as it was in the beginning, is now, and ever shall be, world without end. Amen.']
]
, [ 'section', 'A Reading from Holy Scripture' ]
, [ 'scripture'
, 'Abide in me, and I in you. As the branch cannot bear fruit by itself, unless it abides in the vine, neither can you unless you abide in me. I am the vine; you are the branches. Whoever abides in me and I in him, he it is that bears much fruit, for apart from me you can do nothing.'
, 'John 15:4-5'
]
, [ 'rubric', 'or this' ]
, [ 'scripture'
, 'Do not worry about anything, but in everything by prayer and supplication with thanksgiving let your requests be made known to God. And the peace of God, which surpasses all understanding, will guard your hearts and your minds in Christ Jesus.'
, 'Philippians 4:6-7'
]
, [ 'rubric', 'A period of silence may follow.']
, [ 'rubric', 'Prayers may be offered for ourselves and others.' ]
, [ 'section', 'The Lord’s Prayer']
, [ 'theLordsPrayer' ]
, [ 'section', 'The Collect']
, [ 'collect'
, 'Blessed Savior, at this hour you hung upon the cross, stretching out your loving arms: Grant that all the peoples of the earth may look to you and be saved; for your tender mercies’ sake.'
, 'Amen.'
]
, [ 'section', 'In the Early Evening' ]
, [ 'rubric', 'This devotion may be used before or after the evening meal.']
, [ 'rubric', 'The following or some other verse of Scripture is said']
, [ 'song', 'Psalm 36:7, 9', ''
, 'How priceless is your love, O God!'
, 'Your people take refuge under the shadow of your wings.'
, 'For with you is the well of life,'
, 'and in your light we see light. '
]
// , [ 'phosHilaron' ]
, [ 'canticle', 'Phos Hilaron', 'O Gladsome Light'
, 'O gladsome light,'
, 'pure brightness of the ever-living Father in heaven,'
, 'O Jesus Christ, holy and blessed!'
, 'Now as we come to the setting of the sun,'
, 'and our eyes behold the vesper light,'
, 'we sing your praises, O God: Father, Son, and Holy Spirit.'
, 'You are worthy at all times to be praised by happy voices,'
, 'O Son of God, O Giver of Life,'
, 'and to be glorified through all the worlds.'
]
, [ 'section', 'A Reading from Holy Scripture' ]
, [ 'scripture'
, 'For what we proclaim is not ourselves, but Jesus Christ as Lord, with ourselves as your servants, for Jesus’ sake. For God, who said, “Let light shine out of darkness,” has shone in our hearts, to give the light of the knowledge of the glory of God in the face of Jesus Christ.'
, '2 Corinthians 4:5-6'
]
, [ 'rubric', 'or this' ]
, [ 'scripture'
, 'Jesus spoke to them, saying, “I am the light of the world. Whoever follows me will not walk in darkness, but will have the light of life.”,'
, 'John 8:12'
]
, [ 'rubric', 'or this' ]
, [ 'scripture'
, 'Jesus said, “Behold, I stand at the door and knock. If anyone hears my voice and opens the door, I will come in to him and eat with him, and he with me.”'
, 'Revelation 3:20'
]
, [ 'rubric', 'A period of silence may follow.' ]
, [ 'rubric', 'Prayers may be offered for ourselves and others.' ]
, [ 'rubric', 'A hymn or canticle may be used; the Apostles’ Creed may be said.']
, [ 'apostlesCreed' ]
, [ 'section', 'The Lord’s Prayer']
, [ 'theLordsPrayer' ]
, [ 'section', 'The Collect' ]
, [ 'collect'
, 'Lord Jesus, stay with us, for evening is at hand and the day is past; be our companion in the way, kindle our hearts, and awaken hope, that we may know you as you are revealed in Scripture and the breaking of bread. Grant this for the sake of your love.'
, 'Amen.'
]
, [ 'section', 'At the Close of Day']
, [ 'rubric', 'The following or some other verse of Scripture is said']
, [ 'song', 'Psalm 4:8', ''
, 'I will lay myself down in peace, and take my rest;'
, 'for it is you, LORD, only, that makes me dwell in safety. '
]
, [ 'psalm', 'Psalm 134'
, [ 'Behold now, praise the LORD, *', 'all you servants of the LORD ,' ]
, [ 'You that stand by night in the house of the LORD, *', 'even in the courts of the house of our God.' ]
, [ 'Lift up your hands in the sanctuary *', 'And sing praises unto the LORD.']
, [ 'The LORD who made heaven and earth *', 'give you blessing out of Zion.']
, [ 'Glory be to the Father, and to the Son, and to the Holy Spirit: *', 'as it was in the beginning, is now, and ever shall be, world without end. Amen.']
]
, [ 'section', 'A Reading from Holy Scripture' ]
, [ 'scripture'
, 'You keep them in perfect peace whose minds are stayed on you, because they trust in you. Trust in the Lord for ever, for the Lord God is an everlasting rock.'
, 'Isaiah 26:3-4'
]
, [ 'rubric', 'or this']
, [ 'scripture'
, 'Now may the God of peace himself sanctify you completely, and may your whole spirit and soul and body be kept blameless at the coming of our Lord Jesus Christ.'
, '1 Thessalonians 5:23'
]
, [ 'rubric', 'A period of silence may follow.' ]
, [ 'rubric', 'Prayers for ourselves and others may follow. It is appropriate that prayers of thanksgiving for the blessings of the day, and penitence for our sins, be included.' ]
, [ 'section', 'The Lord’s Prayer' ]
, [ 'theLordsPrayer' ]
, [ 'section', 'The Collect' ]
, [ 'collect'
, 'Visit this place, O Lord, and drive far from it all snares of the enemy; let your holy angels dwell with us to preserve us in peace; and let your blessing be upon us always; through Jesus Christ our Lord.'
, 'Amen.'
]
, [ 'song', 'The Song of Simeon', '(Luke 2:29-32)'
, 'Lord, now let your servant depart in peace,'
, 'according to your word.'
, 'For my eyes have seen your salvation,'
, 'which you have prepared before the face of all people;'
, 'to be a light to lighten the Gentiles,'
, 'and to be the glory of your people Israel.'
, 'Glory to the Father, and to the Son, and to the Holy Spirit: *'
, 'as it was in the beginning, is now, and ever shall be, world without end. Amen.'
]
, [ 'section', 'Concluding Sentence' ]
, [ 'concludingSentence'
, 'The almighty and merciful Lord, Father, Son, and Holy Spirit, bless us and keep us, this night and evermore.'
, 'Amen.'
]
, [ 'rubric', 'When the Apostles Creed is included in Family Prayer, the text is as follows:']
, [ 'section', 'The Apostles’ Creed' ]
, [ 'noindent', 'I believe in God, the Father almighty,']
, [ 'indent', 'creator of heaven and earth.']
, [ 'noindent', 'I believe in Jesus Christ, his only Son, our Lord.']
, [ 'indent', 'He was conceived by the Holy Spirit']
, [ 'indent', 'and born of the Virgin Mary.']
, [ 'indent', 'He suffered under Pontius Pilate,']
, [ 'indent', 'was crucified, died, and was buried.']
, [ 'indent', 'He descended to the dead.']
, [ 'indent', 'On the third day he rose again.']
, [ 'indent', 'He ascended into heaven,']
, [ 'indent', 'and is seated at the right hand of the Father.']
, [ 'indent', 'He will come again to judge the living and the dead.']
, [ 'noindent', 'I believe in the Holy Spirit,']
, [ 'indent', 'the holy catholic Church,']
, [ 'indent', 'the communion of saints,']
, [ 'indent', 'the forgiveness of sins,']
, [ 'indent', 'the resurrection of the body,']
, [ 'indent', 'and the life everlasting. Amen.']
]
// widgets
"use strict";
import $ from 'jquery';
var container = $('#offices');
export function pageBuild (list) {
container.innerHTML = ""; // rebuild the page
console.log("LIST: ", list)
list.forEach(function([ofType, ...list]){
switch(ofType) {
case 'title': newTitle(list); break;
case 'rubric': newRubric(list); break;
case 'section': newSection(list); break;
case 'indent': newParagraph('indent', list); break;
case 'indent2': newParagraph('indent2', list); break;
case 'noindent': newParagraph('no-indent', list); break;
case 'song': newSong(list); break;
case 'psalm': newPsalm(list); break;
case 'alternatePsalm': newAlternatePsalm(list); break;
case 'scripture': newScripture(list); break;
case 'collect': newCollect(list); break;
case 'canticle': newCanticle(list); break;
case 'concludingSentence': newConcludingSentence(list); break;
case 'theLordsPrayer': lordsPrayer(); break;
case 'apostlesCreed': apostlesCreed(); break;
default:
console.log("NO MATCH FOR: ", ofType, " with ", list);
}
})
}
function newElement(ofType, klass, text) {
var node = $(ofType, {"class": klass, text: text});
// console.log('CONTAINER: ', node)
// container.appendChild(node);
// return node;
container.append(node);
return node;
}
function newDiv(klass, text) {
return newElement('<div />', klass, text);
}
function newSpan(klass, text) {
return newElement('<span />', klass, text);
}
function newParagraph(klass, text) {
return newElement('<p />', klass, text);
}
function newTitle (text) {
return newDiv('title', text);
}
function newRubric (text) {
return newDiv('rubric', text);
}
function newSection (text) {
return newDiv('section-title', text);
}
function newIndent (text) {
return newDiv('indent', text);
}
function newNoIndent (text) {
return newDiv('no-indent', text);
}
// `__` means "don't care, not using"
function newSong ([title, subtitle, ...vss]) {
var node = newDiv('song', '');
var newVss = vss.map(function(vs){return newParagraph('no-indent', vs)});
node.append([
newSpan('psalm-title', title)
, newSpan('psalm-subtitle', subtitle)
].concat(newVss)
)
return node;
}
function newPsalm ([title, ...vss]) {
_insertPsalm('psalm', title, vss);
}
function newAlternatePsalm([title, ...vss]) {
_insertPsalm('alternate-psalm', title, vss);
}
function _insertPsalm(psType, title, ...vss) {
var node = newDiv(psType, '');
node.append(newParagraph('psalm-title', title));
// var node = newDiv(psType, psTitle);
return node.append( psalmVss(vss) );
}
function psalmVss(vss) {
// create a bunch of joined paragraphs from the vss
var newVss = vss[0].map(function([a,b]) {
return [newParagraph('psalm-vs-a', a), newParagraph('psalm-vs-b', b)];
});
// return a flattened array - javascript is weird
return [].concat.apply([], newVss);
}
function newScripture([text, ref]) {
var node = newDiv('scripture', text);
node.append(newSpan('scripture-ref', ref));
return node;
}
function newCollect([text, amen]) {
var p = newParagraph('collect', text);
var a = newSpan('amen', amen);
p.append(a);
return p;
}
function newCanticle([title, subtitle, ...lines]) {
var node = newDiv('song', '')
node.append(newSpan('psalm-title', title));
node.append(newSpan('psalm-subtitle', subtitle))
node.append(lines.map(function(l){return newParagraph('no-indent', l)}));
return node
}
function newConcludingSentence([__, text, amen]) {
var node = newParagraph('no-indent', text);
node.append( newSpan('amen', amen) );
return node;
}
function apostlesCreed() {
var node = newDiv('creed', '');
node.append([
newSection('The Apostles Creed')
, newParagraph( 'no-indent', 'I believe in God, the Father almighty,')
, newParagraph( 'indent', 'creator of heaven and earth.')
, newParagraph( 'no-indent', 'I believe in Jesus Christ, his only Son, our Lord.')
, newParagraph( 'indent', 'He was conceived by the Holy Spirit')
, newParagraph( 'indent', 'and born of the Virgin Mary.')
, newParagraph( 'indent', 'He suffered under Pontius Pilate,')
, newParagraph( 'indent', 'was crucified, died, and was buried.')
, newParagraph( 'indent', 'He descended to the dead.')
, newParagraph( 'indent', 'On the third day he rose again.')
, newParagraph( 'indent', 'He ascended into heaven,')
, newParagraph( 'indent', 'and is seated at the right hand of the Father.')
, newParagraph( 'indent', 'He will come again to judge the living and the dead.')
, newParagraph( 'no-indent', 'I believe in the Holy Spirit,')
, newParagraph( 'indent', 'the holy catholic Church,')
, newParagraph( 'indent', 'the communion of saints,')
, newParagraph( 'indent', 'the forgiveness of sins,')
, newParagraph( 'indent', 'the resurrection of the body,')
, newParagraph( 'indent', 'and the life everlasting. Amen.')
])
return node;
}
function lordsPrayer() {
return newDiv('lordsPrayer', '').append( [tradLP(), contLP() ] );
}
function tradLP() {
return newDiv('tradLordsPrayer', '').append([
newParagraph('no-indent', 'Our Father, who art in heaven,')
, newParagraph('indent', 'hallowed be thy Name,')
, newParagraph('indent', 'Thy kingdom come,')
, newParagraph('indent', 'thy will be done, ')
, newParagraph('indent2', 'on earth as it is in heaven.')
, newParagraph('no-indent', 'Give us this day our daily bread.')
, newParagraph('no-indent', 'And forgive us our trespasses,')
, newParagraph('indent', 'as we forgive those')
, newParagraph('indent2', 'who trespass against us.')
, newParagraph('no-indent', 'And lead us not into temptation,')
, newParagraph('indent', 'but deliver us from evil.')
, newParagraph('no-indent', 'For thine is the kingdom,')
, newParagraph('indent', 'and the power, and the glory')
, newParagraph('indent', 'for ever and ever. Amen.')
])
}
function contLP() {
return newDiv('contLordsPrayer', '').append([
newParagraph('no-indent', 'Our Father in heaven,')
, newParagraph('indent', 'hallowed be your Name,')
, newParagraph('indent', 'Your kingdom come,')
, newParagraph('indent', 'your will be done,')
, newParagraph('indent2', 'on earth as it is in heaven.')
, newParagraph('no-indent', 'Give us today our daily bread.')
, newParagraph('no-indent', 'And forgive us our sins')
, newParagraph('indent', 'as we forgive those')
, newParagraph('indent2', 'who sin against us.')
, newParagraph('no-indent', 'Save us from the time of trial,')
, newParagraph('indent', 'and deliver us from evil.')
, newParagraph('no-indent', 'For the kingdom, the power,')
, newParagraph('indent', 'and the glory are yours')
, newParagraph('indent', 'now and for ever. Amen.')
])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment