Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (22 sloc) 620 Bytes

Quickstart

Getting started with lawnchair is super easy:

  1. Include the lawnchair js file in your html document.
  2. Instantiate a lawnchair (you can have as many as you want).
  3. There is no step 3! you can start persisting data clientside!

Figure 1: index.html

<!DOCTYPE html>
<html>
<head>
    <title>my osim app</theitle>
</head>
<body>
    <script src="lawnchair.js"></script>
    <script src="app.js"></script>
</body>
</html>

Figure 2: app.js

:::JavaScript
Lawnchair(function(){
    this.save({msg:'hooray!'})
})
Something went wrong with that request. Please try again.