templates

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package templates provides project scaffolding templates for vango create.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() []string

List returns all available template names.

func Register

func Register(t *Template)

Register adds a template to the registry.

Types

type Config

type Config struct {
	ProjectName  string
	ModulePath   string
	Description  string
	HasTailwind  bool
	HasDatabase  bool
	DatabaseType string
	HasAuth      bool
	HasNeon      bool
	HasStripe    bool
	HasBlob      bool
	BlobProvider string // "r2" or "s3"
}

Config holds configuration for generating a new project from a template.

type Template

type Template struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

Template represents a project scaffold template.

func Get

func Get(name string) (*Template, error)

Get returns a template by name.

func GetWithOptions

func GetWithOptions(name string, cfg Config) (*Template, error)

GetWithOptions returns a template by name, with optional scaffold augmentations.

func (*Template) Create

func (t *Template) Create(dir string, cfg Config) error

Create generates a new project from the template.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL