Templates Overview
Overview
Example of different functionalities
Templates folder structure
template/
├── assets/ # Directory for web assets for the NFT
│ ├── index.html # Main HTML file
│ └── [other assets] # Template-specific assets
├── src/ # Rust smart contract code directory
│ ├── contract.rs # Main contract file
│ ├── error.rs # Errors file
│ ├── lib.rs # Library file
│ ├── msg.rs # Messages file
│ └── state.rs # State file
├── .cargo/ # Directory for rust configuration
│ └── config # Configuration file
├── examples/ # Directory for schema examples
│ └── schema.rs # Schema example
├── Cargo.toml # Cargo package manifest
└── rustfmt.toml # Rust formatting configurationTemplate Modifications
Placeholder system overview
Placeholders by File
Cargo.toml
assets/index.html
examples/schema.rs
src/contract.rs
How Modifications Work
Placeholder Mapping Example
Template Differences:
Last updated