Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 AbstractFS
 apply
C
 cached_list
E
 environment
 exists_p
F
 file_p
 Functions
G
 get
L
 list_directory
P
 pup-tent.js
R
 read_file
 render
 require(‘pup-tent’)
S
 set_common
U
 use_cache_p
function AbstractFS()
Synchronous cross-platform filesystem abstraction for a few common operations.
apply: function(tmpl_name,
tmpl_args)
Run a template with the given arguments.
cached_list: function()
Returns a list of the cached files.
anchor.environment = function()
Return a string representation og the current running environment.
anchor.exists_p = function(path)
Whether or not a path exists.
anchor.file_p = function(path)
Returns whether or not a path is a file.
get: function(key)
Get a file from the cache by key; null otherwise.
anchor.list_directory = function(path)
Return a list of the files in a directory (names relative to the directory) as strings.
anchor.read_file = function(path)
Read a file, returning it as a string.
render: function(tmpl_name,
tmpl_args,
frame_tmpl_name)
Render with special variables.
Creates an instance of the Pup Tent femto-framework.
set_common: function(stack_name,
thing)
Add variables and libraries to special variables for all calls to render.
use_cache_p: function(yes_no)
By default, Pup Tent uses a cache of files read from the filesystem during the initial scan.
Close