def pyfiglet_banner(banner_text="pyfiglet"): form = forms.BannerForm() a_banner = banner.render_banner(banner_text) if form.validate_on_submit(): a_banner = banner.render_banner(form.banner_text.data) return render_template('pyfiglet_banner.html', form=form, a_banner=a_banner) return render_template('pyfiglet_banner.html', form=form, a_banner=a_banner)
def main_stream(): banner_text = "-=-Message Stream-=-" a_banner = banner.render_banner(banner_text) all_posts = models.Post.select().limit(100) return render_template('message_board/main_stream.html', stream=all_posts, a_banner=a_banner)
def toma_time(): banner_text = "-=Toma =-= Timer=-" a_banner = banner.render_banner(banner_text) return render_template('toma_time/toma_time.html', a_banner=a_banner)
def anonymous(): banner_text = "ANONYMOUS" a_banner = banner.render_banner(banner_text) return render_template('auth/anonymous.html', a_banner=a_banner)