Teloce-Py Cheatsheet

Teloce-Py compiles .vel components to browser modules. It is a frontend build tool, not a replacement for Flaxon routes or backend security.

Commands

python -m pip install teloce-py
python -X utf8 -m teloce.cli.main build --out-dir dist --source-map
teloce dev --port 5173

Component

<template><button @click="increment">{{ count }}</button></template>
<script>export default { data() { return { count: 0 }; }, methods: { increment() { this.count++; } } };</script>
<style scoped>button { color: #3776ab; }</style>

Flaxon integration

Build the generated JavaScript into a directory exposed by app.mount_static("/static", "static"). Render a Jinax page with <div id="app"></div> and import the generated module with import { mount } from "/static/js/App.js"; mount("#app").

Read the complete Flaxon integration guide or visit Teloce-Py on GitHub.