diff --git a/app/barrabrasil.py b/app/barrabrasil.py index 583c3e4..303afbd 100644 --- a/app/barrabrasil.py +++ b/app/barrabrasil.py @@ -27,7 +27,9 @@ def barra(): # 'verde': '#00500F', #} #cor = paleta.get(nome_cor, '#004B82') - conteudo = render_template('barra-brasil.js') + #conteudo = render_template('barra-brasil.js', cor=cor) + with app.open_resource('templates/barra-brasil.js') as f: + conteudo = f.read().decode('utf-8') etag = hashlib.sha1(conteudo.encode('utf-8')).hexdigest() if request.if_none_match and \ etag in request.if_none_match: diff --git a/assets/estilo-barra.scss b/assets/estilo-barra.scss index 73770bf..c898144 100755 --- a/assets/estilo-barra.scss +++ b/assets/estilo-barra.scss @@ -3,7 +3,7 @@ License: none (public domain) */ -/*Css reset mínimo*/ +/* Css reset mínimo */ #barra-brasil { div, a, ul, li { margin: 0; -- libgit2 0.21.2