X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwt.php;fp=dwt.php;h=1849778e69ce832c8ffc25ad6ccb6b70f29cb28e;hb=98059dfc3252905f407bd9870e546deba2db686d;hp=d3477534fa964fe605732647be5b48b148c1ce4d;hpb=0848aa3606b38ec51701960b9cbd84bea0fbd8ce;p=wfpl.git diff --git a/dwt.php b/dwt.php index d347753..1849778 100644 --- a/dwt.php +++ b/dwt.php @@ -97,6 +97,19 @@ function dwt_prepend($name, $value) { dwt_prepend_raw("", $value); } +function dwt_get_raw($name) { + $index = dwt_find_raw($name); + if($index !== null) { + return $GLOBALS['_dwt_values'][$index]; + } else { + return false; + } +} + +function dwt_get($name) { + return dwt_get_raw(""); +} + function dwt_output($filename = null) { if($filename !== null) { dwt_load($filename);