Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CONTROLLER
- @app.route('/')
- def index():
- template_one = render_template('/home/template1.html', random_string="hello world")
- return render_template('/home/template2.html', template_one=template_one)
- #VIEW template1.html
- <script>
- alert("{{random_string}}");
- </script>
- #VIEW template2.html
- <div>
- {{template_one}}
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement