Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7cb559fe62
21 lines (16 sloc) 0.438 kB
#!/bin/bash
esh=$(readlink -f $BALLS_LIB/../bin/esh)
render::esh() {
local view="$BALLS_VIEWS/$1"
local compiled="$(esh::compile "$view")"
# source it in a subshell so it gets our variables
( . "$compiled" )
}
esh::compile() {
local view="$1"
local compiled_fname="$view.o"
if [[ ! -f "$compiled_fname" ]] || [[ "$view" -nt "$compiled_fname" ]]; then
$esh "$view" > "$compiled_fname"
fi
echo "$compiled_fname"
}
Jump to Line
Something went wrong with that request. Please try again.