Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
e55d5ef4
Commit
e55d5ef4
authored
Jan 11, 2009
by
seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
svn://dwoo.org/dwoo/trunk@235
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
2c0b300f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
DwooRenderer.php
lib/Dwoo/Adapters/Agavi/DwooRenderer.php
+18
-0
No files found.
lib/Dwoo/Adapters/Agavi/DwooRenderer.php
View file @
e55d5ef4
...
...
@@ -102,6 +102,22 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer
}
/**
* provides a custom compiler to the dwoo renderer with optional settings
* you can set in the agavi output_types.xml config file
*
* @return Dwoo_Compiler
*/
public
function
compilerFactory
()
{
if
(
class_exists
(
'Dwoo_Compiler'
,
false
)
===
false
)
{
include
DWOO_DIRECTORY
.
'Dwoo/Compiler.php'
;
}
$compiler
=
Dwoo_Compiler
::
compilerFactory
();
$compiler
->
setAutoEscape
((
bool
)
$this
->
getParameter
(
'auto_escape'
,
false
));
return
$compiler
;
}
/**
* Grab a cleaned up dwoo instance.
*
* @return Dwoo A Dwoo instance.
...
...
@@ -136,6 +152,8 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer
$this
->
dwoo
->
getLoader
()
->
addDirectory
(
$this
->
plugin_dir
);
}
$this
->
dwoo
->
setDefaultCompilerFactory
(
'file'
,
array
(
$this
,
'compilerFactory'
));
return
$this
->
dwoo
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment