obsidian-promptfire/docs/templates.md
Luca G. Oelfke e7243e3cc1
docs: slim down README and extract detailed docs to docs/
Move comprehensive documentation (settings, templates, output targets,
frontmatter presets, etc.) from the 510-line README into 9 focused files
under docs/. README is now a scannable overview with links to each doc.
Replace GitHub links with Codeberg equivalents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 12:46:15 +01:00

51 lines
1.1 KiB
Markdown

# Prompt Templates
Create reusable prompt templates that wrap around your generated context.
## Example Template
```markdown
You are a code reviewer. Analyze the following context and provide feedback.
{{context}}
Focus on:
- Code quality
- Best practices
- Potential bugs
{{#if activeNote}}
The user is currently working on: {{activeNote}}
{{/if}}
```
## Available Placeholders
| Placeholder | Description |
|-------------|-------------|
| `{{context}}` | The generated context |
| `{{activeNote}}` | Currently open note name |
| `{{activeNotePath}}` | Full path to active note |
| `{{date}}` | Current date (YYYY-MM-DD) |
| `{{time}}` | Current time (HH:MM) |
| `{{vaultName}}` | Your vault's name |
## Conditionals
Use conditionals to include content only when a variable is available:
```
{{#if variable}}
Content shown when variable exists
{{else}}
Fallback content
{{/if}}
```
## Settings
| Setting | Description |
|---------|-------------|
| **Name** | Display name for the template |
| **Content** | Template body with placeholders |
| **Default** | Use this template automatically when copying |