| A | |
| AbstractFS | |
| apply | |
| C | |
| cached_list | |
| E | |
| environment | |
| exists_p | |
| F | |
| file_p | |
| G | |
| get | |
| L | |
| list_directory | |
| R | |
| read_file | |
| render | |
| require(‘pup-tent’) | |
| S | |
| set_common | |
| U | |
| use_cache_p |
Synchronous cross-platform filesystem abstraction for a few common operations.
function AbstractFS()
Run a template with the given arguments.
apply: function( tmpl_name, tmpl_args )
Returns a list of the cached files.
cached_list: function()
Return a string representation og the current running environment.
anchor.environment = function()
Whether or not a path exists.
anchor.exists_p = function( path )
Returns whether or not a path is a file.
anchor.file_p = function( path )
Get a file from the cache by key; null otherwise.
get: function( key )
Return a list of the files in a directory (names relative to the directory) as strings.
anchor.list_directory = function( path )
Read a file, returning it as a string.
anchor.read_file = function( path )
Render with special variables.
render: function( tmpl_name, tmpl_args, frame_tmpl_name )
Add variables and libraries to special variables for all calls to render.
set_common: function( stack_name, thing )
By default, Pup Tent uses a cache of files read from the filesystem during the initial scan.
use_cache_p: function( yes_no )