Skip to content
On this page

@gracious.tech/fetch-client / book / BibleBookHtml

Class: BibleBookHtml

book.BibleBookHtml

Access to the HTML text of a Bible book

Methods

get_attribution

get_attribution(license?): string

Get appropriate text for attribution (defaults to first license, optionally provide one)

Parameters

NameType
license?RuntimeLicense

Returns

string


get_whole

get_whole(options): Verses

Get the HTML for the entire book (as a string or a list of verses)

Parameters

NameType
optionsListT<GetPassageOptions>

Returns

Verses

get_whole(options?): string

Parameters

NameType
options?ListF<GetPassageOptions>

Returns

string


get_passage

get_passage(start_chapter, start_verse, end_chapter, end_verse, options): Verses

Get HTML for a specific passage

Parameters

NameType
start_chapternumber
start_versenumber
end_chapternumber
end_versenumber
optionsListT<GetPassageOptions>

Returns

Verses

get_passage(start_chapter, start_verse, end_chapter, end_verse, options?): string

Parameters

NameType
start_chapternumber
start_versenumber
end_chapternumber
end_versenumber
options?ListF<GetPassageOptions>

Returns

string


get_chapters

get_chapters(first, last, options): Verses

Get HTML for multiple chapters

Parameters

NameType
firstnumber
lastnumber
optionsListT<GetPassageOptions>

Returns

Verses

get_chapters(first, last, options?): string

Parameters

NameType
firstnumber
lastnumber
options?ListF<GetPassageOptions>

Returns

string


get_chapter

get_chapter(chapter, options): Verses

Get HTML for a single chapter

Parameters

NameType
chapternumber
optionsListT<GetPassageOptions>

Returns

Verses

get_chapter(chapter, options?): string

Parameters

NameType
chapternumber
options?ListF<GetPassageOptions>

Returns

string


get_verse

get_verse(chapter, verse, options?): string

Get HTML for a single verse

Parameters

NameType
chapternumber
versenumber
optionsOmit<GetPassageOptions, "list">

Returns

string