Edge
class Edge (View source)
The Edge template engine.
This is a modified version of Laravel Blade engine.
Methods
EdgeEnvironment constructor.
render
escape
Start injecting content into a section.
Inject inline content into a section.
Stop injecting content into a section and return its contents.
Stop injecting content into a section.
Stop injecting content into a section and append it.
Get the string contents of a section.
Start injecting content into a push section.
Stop injecting content into a push section.
Get the string contents of a push section.
Get the rendered contents of a partial from a loop.
Flush all of the section contents.
Flush all of the section contents if done rendering.
Increment the rendering counter.
Decrement the rendering counter.
Check if there are no active render operations.
arrayExcept
Method to get property Globals
No description
No description
Method to set property globals
Method to get property Compiler
Method to get property Loader
removeExtension
hasExtension
getExtension
Method to get property Extensions
Method to get property Cache
Details
at line line 112
__construct(EdgeLoaderInterface $loader = null, EdgeCompilerInterface $compiler = null, EdgeCacheInterface $cache = null)
EdgeEnvironment constructor.
at line line 127
string
render(string $__layout, array $__data = array())
render
at line line 229
string
escape(string $string)
escape
at line line 242
void
startSection(string $section, string $content = '')
Start injecting content into a section.
at line line 265
void
inject(string $section, string $content)
Inject inline content into a section.
at line line 275
string
yieldSection()
Stop injecting content into a section and return its contents.
at line line 293
string
stopSection(bool $overwrite = false)
Stop injecting content into a section.
at line line 320
string
appendSection()
Stop injecting content into a section and append it.
at line line 367
string
yieldContent(string $section, string $default = '')
Get the string contents of a section.
at line line 391
void
startPush(string $section, string $content = '')
Start injecting content into a push section.
at line line 412
string
stopPush()
Stop injecting content into a push section.
at line line 459
string
yieldPushContent(string $section, string $default = '')
Get the string contents of a push section.
at line line 479
string
renderEach(string $view, array $data, string $iterator, string $empty = 'raw|')
Get the rendered contents of a partial from a loop.
at line line 519
void
flushSections()
Flush all of the section contents.
at line line 535
void
flushSectionsIfDoneRendering()
Flush all of the section contents if done rendering.
at line line 548
void
incrementRender()
Increment the rendering counter.
at line line 558
void
decrementRender()
Decrement the rendering counter.
at line line 568
bool
doneRendering()
Check if there are no active render operations.
at line line 580
EdgeCompilerInterface
prepareExtensions(EdgeCompilerInterface $compiler)
prepareDirectives
at line line 606
array
arrayExcept(array $array, array $fields)
arrayExcept
at line line 626
array
getGlobals(bool $withExtensions = false)
Method to get property Globals
at line line 660
removeGlobal($name)
at line line 667
getGlobal($name, $default = null)
at line line 696
EdgeCompilerInterface
getCompiler()
Method to get property Compiler
at line line 708
Edge
setCompiler(EdgeCompilerInterface $compiler)
Method to set property compiler
at line line 720
EdgeLoaderInterface
getLoader()
Method to get property Loader
at line line 732
Edge
setLoader(EdgeLoaderInterface $loader)
Method to set property loader
at line line 747
Edge
addExtension(EdgeExtensionInterface $extension, string $name = null)
addExtension
at line line 783
boolean
hasExtension(string $name)
hasExtension
at line line 795
EdgeExtensionInterface
getExtension(string $name)
getExtension
at line line 810
EdgeExtensionInterface[]
getExtensions()
Method to get property Extensions
at line line 822
Edge
setExtensions(EdgeExtensionInterface[] $extensions)
Method to set property extensions
at line line 834
EdgeCacheInterface
getCache()
Method to get property Cache
at line line 846
Edge
setCache(EdgeCacheInterface $cache)
Method to set property cache