summaryrefslogtreecommitdiff
path: root/app/builder/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder/base.py')
-rw-r--r--app/builder/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 9ac8ec9..5c8c322 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -121,10 +121,19 @@ class BuildNew():
# write txt
response = self.client.get('%s.txt' % url)
self.write_file(path, response.content, ext='txt', filename=slug)
+
+
+ def build_amp_view(self):
+ '''
+ Grab all the blog posts, render them to a template
+ string and write that out to the filesystem
+ '''
+ for entry in self.get_model_queryset():
# write AMP
response = self.client.get('%s.amp' % url)
self.write_file(path, response.content, ext='amp', filename=slug)
+
def build_feed(self, url_name):
"""
Not called, but available for subclassing