Fix in welcome

This commit is contained in:
Antonio de la Rosa 2025-12-07 17:54:09 +01:00
parent eb6dc85f8c
commit abd9fa7f47
3 changed files with 6 additions and 5 deletions

View file

@ -15,11 +15,11 @@ t=PTemplate(env)
@welcome_app.route('/welcome')
def home():
return t.render_template('welcome.html', title="Welcome to Cuchulu!!!", content="The simple web framework writed in Python3!!!")
return t.render_template('welcome.phtml', title="Welcome to Cuchulu!!!", content="The simple web framework writed in Python3!!!")
@welcome_app.route('/welcome/<id:int>')
def page(id):
return t.render_template('index.html', title="A simple example of a page", id=id, value=request.query.value)
return t.render_template('index.phtml', title="A simple example of a page", id=id, value=request.query.value)
@welcome_app.route('/welcome/test/<int_id:int>')
def test(int_id):
@ -29,3 +29,4 @@ def test(int_id):
if config.default_module=="welcome":
home = app.route("/")(home)

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Paramecio WebFramework</title>
<title>Cuchulu WebFramework</title>
<!--<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>-->
<style type="text/css">
@ -75,7 +75,7 @@
</%block>
</div>
<div class="footer">Paramecio, a system created for create webapps</div>
<div class="footer">Cuchulu, a system created for create webapps</div>
</div>
</body>

View file

@ -1,4 +1,4 @@
<%inherit file="index.html"/>
<%inherit file="index.phtml"/>
<%block name="content">
This is Paramecio, a simple web framework based in Bottle, Mako and Python 3.
</%block>