Skip to main content

Module templates

Module templates 

Source

Re-exports§

pub use docker::*;

Modules§

ci_workflow
Renderer for .github/workflows/ci.yml (D-13..D-17, D-21).
do_
Phase 122.2 §4: .do/app.yaml starter renderer.
docker
module
Stub templates for ferro make:module — the feature-module convention (controller/model/views/routes). These are injected into user projects, so every snippet must compile as-is inside a fresh Ferro application.

Structs§

ColumnInfo
Column information from database schema
ForeignKeyField
Foreign key information for template generation. Mirrors the ForeignKeyInfo from analyzer.rs for use in templates.
ScaffoldField
Scaffold field information for factory generation
ScaffoldForeignKey
Foreign key information for scaffold generation
TableInfo
Table information from database schema

Functions§

action_template
Template for generating new action with make:action command
actions_mod
api_controller_template
Template for generating API-only controller with make:scaffold –api
api_controller_with_fk_template
Template for generating API-only controller with FK nested data support
app_layout
auth_controller
auth_controller_template
Auth controller template with register, login, and logout handlers.
auth_layout
auth_migration_template
Migration template that adds auth fields to an existing users table.
authenticate_middleware
bootstrap
cargo_toml
claude_md_ferro_section
Section to append to existing CLAUDE.md
claude_md_template
CLAUDE.md template for Claude Code
config_database
config_mail
config_mod
controller_template
Template for generating new controller with make:controller command
controllers_mod
copilot_instructions_template
GitHub Copilot instructions
create_password_reset_tokens_migration
create_sessions_migration
create_users_migration
cursor_rules_template
Cursor-specific rules file
dashboard_controller
dashboard_page
entities_mod_template
Generate entities/mod.rs (regenerated on every sync)
entity_template
Generate auto-generated entity file (regenerated on every sync)
env
env_example
error_template
Template for generating new error with make:error command
event_template
Template for generating new events with make:event command
events_mod
Template for events/mod.rs
example_action
factories_mod
Template for factories/mod.rs
factory_template
Template for generating new factory with make:factory command
ferro_guidelines_template
Ferro framework guidelines for AI assistants
forgot_password_page
gitignore
globals_css
home_controller
home_page
index_html
inertia_page_template
Template for generating new Inertia page with make:inertia command
inertia_props_types
job_template
Template for generating new jobs with make:job command
jobs_mod
Template for jobs/mod.rs
json_view_template
Template for generating a JSON-UI view file (–no-ai fallback).
lang_app_json
Template for lang/{locale}/app.json (starter application translations)
lang_validation_json
Template for lang/{locale}/validation.json (English validation messages)
layouts_index
listener_template
Template for generating new listeners with make:listener command
listeners_mod
Template for listeners/mod.rs
login_page
main_rs
main_tsx
middleware_logging
middleware_mod
middleware_template
Template for generating new middleware with make:middleware command
migrations_mod
models_mod
Template for models/mod.rs
notification_template
Template for generating new notifications with make:notification command
notifications_mod
Template for notifications/mod.rs
package_json
password_reset_tokens_model
policies_mod
Template for policies/mod.rs
policy_template
Template for generating new policy with make:policy command
profile_controller
profile_page
readme
register_page
reset_password_page
resource_template
Template for generating new resource with make:resource command
routes_rs
scaffold_controller_template
Template for generating full-stack controller without FK relationships
scaffold_controller_with_fk_template
Template for generating full-stack controller with FK eager loading
scaffold_factory_template
Template for generating factory with pre-populated fields from scaffold definition
scaffold_test_template
Template for generating controller tests with make:scaffold –with-tests
scaffold_test_with_factory_template
Template for generating controller tests that use factories
schedule_rs
Template for schedule.rs registration file
seeder_template
Template for generating new seeder with make:seeder command
seeders_mod
Template for seeders/mod.rs
settings_controller
settings_page
task_template
Template for generating new scheduled task with make:task command
tasks_mod
Template for tasks/mod.rs
tsconfig
user_model
user_model_template
Generate user model file with Eloquent-like API (created only once, never overwritten)
vite_config