move formatting from JS to PHP
[mdref/mdref] / mdref / Action.php
index 3addfa0527fe4880259d57e3f4ab964ff9c04ae2..0c48dd6b403c448d5d6f9538b141e448aadc01d1 100644 (file)
@@ -77,6 +77,10 @@ class Action {
                $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;