Returns a <time> element containing the time. Pass falsy value to format to exclude them from output.
| package |
Default |
|---|
string
string
mixedOptionally pass custom time
Prints a template. Templates can be just about anything, but they must have a function with the name you use to print the template. See sample_template() and sample_template_named_params().
| package |
Default |
|---|---|
| deprecated |
stringTemplate init function name
arrayArray without string keys, will be passed as function arguments.
mixed
Return list of files in path relative to current file.
| package |
Default |
|---|
string
Load templates from dir using glob.
Usage: load_glob(dirname(FILE) . '/templates/*')
| package |
Default |
|---|
string
Outputs a template. Templates are just functions that you can give parameters.
See sample_template() and sample_template_named_params().
| package |
Default |
|---|
string
array
Returns a <a> element containing the permalink.
| package |
Default |
|---|
mixed
string
Sample template for those unsure. This is the template init function, you could use classes if you wanted. Usage: <?=\rnb\template\get('\rnb\template\sample_template', ['Hello', 'world!']);
| package |
Default |
|---|
string
string
Sample template using "named parameters". Usage: <?=\rnb\template\get('\rnb\template\sample_template_named_params', [['title' => 'Hello world!']]);
| package |
Default |
|---|
array
Return template instead of printing it. Uses get() internally.
| package |
Default |
|---|---|
| deprecated |
stringFunction name
arrayAnything you pass with this array will be used as function parameters for the template.