projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
move formatting from JS to PHP
[mdref/mdref]
/
mdref
/
Action.php
diff --git
a/mdref/Action.php
b/mdref/Action.php
index 3addfa0527fe4880259d57e3f4ab964ff9c04ae2..0c48dd6b403c448d5d6f9538b141e448aadc01d1 100644
(file)
--- a/
mdref/Action.php
+++ b/
mdref/Action.php
@@
-77,6
+77,10
@@
class Action {
$pld->ref = $this->baseUrl->pathinfo(
$this->baseUrl->mod($this->request->getRequestUrl()));
$pld->ref = $this->baseUrl->pathinfo(
$this->baseUrl->mod($this->request->getRequestUrl()));
+ $pld->markup = function($page) use($pld) {
+ return $this->reference->getFormatter()->markup($page, $pld);
+ };
+
$pld->refs = $this->reference;
$pld->baseUrl = $this->baseUrl;
$pld->refs = $this->reference;
$pld->baseUrl = $this->baseUrl;