Commands

Misc

Using Lava Remotely

Many people assume that Lava is limited to being used inside Rock. For the most part that is true, but
we have created some neat tools to help you extend the power of Lava to other websites running alternative
technologies.

Lava REST Endpoint

The Lava REST endpoint is a simple endpoint that takes Lava as input and turns the
rendered template as output. This endpoint is easily used by any programming
lanaguage, including Javascript.

Be very careful when using this endpoint if Javascript as your souce code is visible to
all users. Seeing the endpoint and the API key allows them to send any Lava they'd like, which
would be run by the user linked to the API key. This is fine if you've carefully
locked down the endpoint, but generally you should avoid using Javascript and instead use PHP, Ruby, or
some other server-side language. To enforce security this endpoint can only be accessed by HTTPS.