* more scaffolding code from delphi.market * we now read environment from .env * we now try to init db and lnd but in a non-blocking way * we now set "render context" to have access to environment during template render * frontend can now read commit from HTML attribute
5 lines
165 B
JavaScript
5 lines
165 B
JavaScript
var $ = selector => document.querySelector(selector)
|
|
|
|
// access server-side data using HTML data-* attributes
|
|
var $$ = (attr) => JSON.parse($("body").dataset[attr])
|