Esempio n. 1
0
 def generate_resource(cls, post, resource):
   import models
   if not post:
     post = models.BlogPost.get_by_id(resource)
   else:
     assert resource == post.key().id()
   template_vals = {
       'post': post,
       'rendered_body': markup.render_body(post),
   }
   rendered = utils.render_template("post.html", template_vals)
   static.set(post.path, rendered, config.html_mime_type)
Esempio n. 2
0
 def rendered(self):
   # Returns the rendered body.
   return markup.render_body(self)
Esempio n. 3
0
 def rendered(self):
   """Returns the rendered body."""
   return markup.render_body(self)
Esempio n. 4
0
 def rendered(self):
     """Returns the rendered body."""
     return markup.render_body(self)
Esempio n. 5
0
 def rendered(self):
     # Returns the rendered body.
     return markup.render_body(self)