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') @welcome_app.route('/welcome')
def home(): 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>') @welcome_app.route('/welcome/<id:int>')
def page(id): 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>') @welcome_app.route('/welcome/test/<int_id:int>')
def test(int_id): def test(int_id):
@ -29,3 +29,4 @@ def test(int_id):
if config.default_module=="welcome": if config.default_module=="welcome":
home = app.route("/")(home) home = app.route("/")(home)

View file

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

View file

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