+function dwt_append($name, $value) {
+ dwt_append_raw("<!-- TemplateBeginEditable name=\"$name\" -->", $value);
+}
+
+function dwt_prepend_raw($name, $value) {
+ $index = dwt_find_raw($name);
+ if($index !== null) {
+ $GLOBALS['_dwt_values'][$index] = $value . $GLOBALS['_dwt_values'][$index];
+ } else {
+ dwt_set_raw($name, $value);
+ }
+}
+
+function dwt_prepend($name, $value) {
+ dwt_prepend_raw("<!-- TemplateBeginEditable name=\"$name\" -->", $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("<!-- TemplateBeginEditable name=\"$name\" -->");
+}
+