<dtml-comment>
### Set file name ###
</dtml-comment><dtml-unless fname><dtml-call "REQUEST.set('fname','COREBlog_Export.txt')"></dtml-unless><dtml-comment>
### Set response headers for download ###
</dtml-comment><dtml-call "RESPONSE.setHeader('Content-type','application/data')"><dtml-call "RESPONSE.setHeader('Content-Disposition','inline;filename='+fname)"><dtml-comment>
### Write entries ###</dtml-comment>
<dtml-in "entry_items(count=-1)" sort=date_created>
ID: <dtml-var id>
AUTHOR: <dtml-var author>
TITLE: <dtml-var entry_title>
STATUS: Publish
ALLOW COMMENTS: <dtml-var allow_comment>
CONVERT BREAKS: __default__
ALLOW PINGS: <dtml-var receive_trackback>
<dtml-in entry_category_list>
<dtml-if sequence-start>PRIMARY CATEGORY: <dtml-var name>
<dtml-else>CATEGORY: <dtml-var name>
</dtml-if>
</dtml-in>

DATE: <dtml-var date_created fmt="%m/%d/%Y %I:%M:%S %p">
-----
BODY:
<dtml-if "format == 0">
<dtml-var body newline_to_br>
<dtml-elif "format == 1">
<dtml-var body fmt=structured-text>
<dtml-elif "format == 2">
<dtml-var body>
<dtml-elif "format == 4 and body">
<dtml-var body fmt=restructured-text>
</dtml-if>
-----
EXTENDED BODY:
<dtml-if "format == 0">
<dtml-var extend newline_to_br>
<dtml-elif "format == 1">
<dtml-var extend fmt=structured-text>
<dtml-elif "format == 2">
<dtml-var extend>
<dtml-elif "format == 4 and extend">
<dtml-var extend fmt=restructured-text>
</dtml-if>

-----
EXCERPT:
<dtml-var excerpt>

-----
KEYWORDS:

-----
<dtml-in comment_list>
COMMENT:
TITLE: <dtml-var title>
AUTHOR: <dtml-var author>
EMAIL: <dtml-var email>
IP: 
URL: <dtml-var url>
DATE: <dtml-var "ZopeTime(created)" fmt="%m/%d/%Y %I:%M:%S %p">
<dtml-var body>
-----
</dtml-in>

<dtml-in trackback_list>
PING:
TITLE: <dtml-var title>
URL: <dtml-var url>
IP: 
BLOG NAME: <dtml-var blog_name>
DATE: <dtml-var "ZopeTime(created)" fmt="%m/%d/%Y %I:%M:%S %p">
<dtml-var excerpt>
-----
</dtml-in>

--------
<dtml-else>
NO ENTRYS
</dtml-in>