elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Opal::ERB.compile

Compile ERB code into javascript.

[Opal::ERB] can be used to compile [ERB] templates into javascript code.
This module uses the [Opal::Compiler] internally.

Compiled templates, when run in a javascript environment, will appear
under the `Template` namespace, and can be accessed as:

    Template['template_name'] # => template instance

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Opal--ERB-compile-for-pr


# Commit to git

git add git commit -m "better docs for Opal::ERB.compile"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Opal--ERB-compile-for-pr

hub pull-request


# Celebrate!