diff options
author | friendica <info@friendica.com> | 2013-05-08 02:11:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-08 02:11:17 -0700 |
commit | cdcbe9772423d5373f6d0d4aa33700446a989340 (patch) | |
tree | 2f1f1c7540c62c049dd314b0155380c6cb4526b5 /view/tpl/poco_xml.tpl | |
parent | 51c27579ba79d32c26052c0d1f1218a16315234b (diff) | |
parent | 5e1980becf69a4c65489bed6f94fa730ec8ef4bf (diff) | |
download | volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.tar.gz volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.tar.bz2 volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.zip |
Merge pull request #50 from fabrixxm/newtemplatesystem
New template system
Diffstat (limited to 'view/tpl/poco_xml.tpl')
-rwxr-xr-x[-rw-r--r--] | view/tpl/poco_xml.tpl | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/view/tpl/poco_xml.tpl b/view/tpl/poco_xml.tpl index 9549b695d..b8cd8fc08 100644..100755 --- a/view/tpl/poco_xml.tpl +++ b/view/tpl/poco_xml.tpl @@ -1,18 +1,23 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} <?xml version="1.0" encoding="utf-8"?> <response> -{{ if $response.sorted }}<sorted>$response.sorted</sorted>{{ endif }} -{{ if $response.filtered }}<filtered>$response.filtered</filtered>{{ endif }} -{{ if $response.updatedSince }}<updatedSince>$response.updatedSince</updatedSince>{{ endif }} -<startIndex>$response.startIndex</startIndex> -<itemsPerPage>$response.itemsPerPage</itemsPerPage> -<totalResults>$response.totalResults</totalResults> +{{if $response.sorted}}<sorted>{{$response.sorted}}</sorted>{{/if}} +{{if $response.filtered}}<filtered>{{$response.filtered}}</filtered>{{/if}} +{{if $response.updatedSince}}<updatedSince>{{$response.updatedSince}}</updatedSince>{{/if}} +<startIndex>{{$response.startIndex}}</startIndex> +<itemsPerPage>{{$response.itemsPerPage}}</itemsPerPage> +<totalResults>{{$response.totalResults}}</totalResults> -{{ if $response.totalResults }} -{{ for $response.entry as $entry }} -{{ inc poco_entry_xml.tpl }}{{ endinc }} -{{ endfor }} -{{ else }} +{{if $response.totalResults}} +{{foreach $response.entry as $entry}} +{{include file="poco_entry_xml.tpl"}} +{{/foreach}} +{{else}} <entry></entry> -{{ endif }} +{{/if}} </response> |