Orchid Bible

markup official

About

OrchidBible makes it easy to embed Bible verses in your site content. Just pass in the reference to a verse and Orchid will look up the verse text and add it to your site automatically.

Demo

16For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.

~ John 3:16

19“For through the Law I died to the Law, so that I might live to God.

20“I have been crucified with Christ; and it is no longer I who live, but Christ lives in me; and the life which I now live in the flesh I live by faith in the Son of God, who loved me and gave Himself up for me.

21“I do not nullify the grace of God, for if righteousness comes through the Law, then Christ died needlessly.”

~ Galatians 2:19-21

Usage

Basic Usage

Bible verses can be added simply by passing their reference to the bible function. The verse text will be downloaded and displayed on the page, along with the verse reference. The Bible version must be the id of one of the available versions on Bibles.org.

As a filter

{{ "John 3:16"|bible("eng-KJV") }}

As a function

{{ bible("Galatians 2 19-21", "eng-NASB") }}

Configuration

You will need to sign up for an API key for the Bibles.org API to download verse text. Once you create and account and get an API key, add it to Orchid using the --absApiKey CLI flag, or set it as an environment variable at absApiKey.

orchid {
    ...
    args += ["--absApiKey", "${project.property('ABS_API_KEY')}"]
}

You can also set the default Bible version with the --absDefaultVersion flag. This will be the version used if you do not pass one to the bible() function.

orchid {
    ...
    args += ["--absDefaultVersion", "eng-NASB"]
}
Include with:
dependencies {
    orchidRuntime 'io.github.javaeden.orchid:OrchidBible:0.17.1'
}
<dependency>
    <groupId>io.github.javaeden.orchid</groupId>
    <artifactId>OrchidBible</artifactId>
    <version>0.17.1</version>
    <type>pom</type>
</dependency>
@file:DependsOn("io.github.javaeden.orchid:OrchidBible:0.17.1")