<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:14.0pt">Greetings,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">            I have the following:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#0033B3">def
</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">get</span><span style="font-size:10.0pt;font-family:"Courier New";color:#080808">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#94558D">self</span><span style="font-size:10.0pt;font-family:"Courier New";color:#080808">):<br>
    </span><span style="font-size:10.0pt;font-family:"Courier New";color:#0033B3">return
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#080808">render_template_string(</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:teal">'<h1>PLEASE CLOSE THIS WINDOW</h1>'</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#080808">)<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#080808"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">When the following is called what is displayed in the browser is :</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Courier New";color:teal">'<h1>PLEASE CLOSE THIS WINDOW</h1>'<o:p></o:p></span></b></p>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Courier New";color:teal"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">It doesn’t get rendered.  I have tried various option as seen on the web, such as:</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<pre style="background:white"><span style="color:#0033B3">return </span><span style="color:#080808">render_template_string(</span><b><span style="color:teal">'''<!doctype html><br><html><br>    <head><br>        <link rel="stylesheet" href="css url"/><br>    </head><br>    <body><br>        <p>Hello, World!</p><br>    </body><br></html><br>'''</span></b><span style="color:#080808">)<o:p></o:p></span></pre>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">It just displays the html, it doesn’t render it.  I have also tried render_template(‘pleaseclose.html’), it also just displays the html in the file and doesn’t render it</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">               The way the get(self) is called is by a callback from an OAuth2 request. 
</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">Any thoughts ?</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">Thank you</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">Pat</span><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#080808">       
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>