Skip to content

[IMP] awesome_owl: web framework 101#1309

Open
manalelk wants to merge 2 commits into
odoo:19.0from
odoo-dev:19.0-web-framework-tuto-maelk
Open

[IMP] awesome_owl: web framework 101#1309
manalelk wants to merge 2 commits into
odoo:19.0from
odoo-dev:19.0-web-framework-tuto-maelk

Conversation

@manalelk
Copy link
Copy Markdown

PROBLEM
The playground interface was becoming cluttered and the counter logic wasn't reusable. Additionally, the framework escaped raw HTML by default, preventing rich text rendering in cards.

GOAL
Extract the UI into reusable components (Counter and Card) and allow secure HTML rendering using OWL's markup function.

SOLUTION

  • Extracted counter logic from Playground into a dedicated Counter component.
  • Created a reusable Card component accepting 'title' and 'content' props.
  • Updated Card template to use 't-out' instead of 't-esc' for the content.
  • Imported and applied the 'markup' function in Playground to safely pass HTML to the Card.

task-6254993

@robodoo
Copy link
Copy Markdown

robodoo commented May 29, 2026

Pull request status dashboard

@manalelk manalelk requested a review from aboo-odoo May 29, 2026 12:11
clbr-odoo and others added 2 commits May 29, 2026 17:23
`json` routes were deprecated to `jsonrpc` in 19.0, let's
get rid of the warning to avoid confusion for the newdoos.

task-none

closes odoo#1037

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
PROBLEM
The playground interface was becoming cluttered and the counter logic wasn't reusable. Additionally, the framework escaped raw HTML by default, preventing rich text rendering in cards.

GOAL
Extract the UI into reusable components (Counter and Card) and allow secure HTML rendering using OWL's markup function.

SOLUTION
- Extracted counter logic from Playground into a dedicated Counter component.
- Created a reusable Card component accepting 'title' and 'content' props.
- Updated Card template to use 't-out' instead of 't-esc' for the content.
- Imported and applied the 'markup' function in Playground to safely pass HTML to the Card.

task-6254993

[IMP] awesome_owl: web framework 101
@manalelk manalelk force-pushed the 19.0-web-framework-tuto-maelk branch from 50351b8 to 002cb15 Compare May 29, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants