Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
HtmlTemplateView.h File Reference

HTML template rendering view, supporting both inline and file-based templates. More...

#include "framework/FrameworkView.h"
#include <string>
#include "http/HttpRequest.h"
#include "http/HttpResponse.h"
+ Include dependency graph for HtmlTemplateView.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HtmlTemplateView
 

Enumerations

enum class  TemplateSource { Inline , FromFile }
 

Detailed Description

Author
Ian Archbell

Supports simple {{key}} substitution for embedded or file-loaded HTML templates. Compatible with the FrameworkView interface and HttpResponse::send(view, context).

Version
0.3
Date
2025-04-30
License:\n MIT License

Definition in file HtmlTemplateView.h.

Enumeration Type Documentation

◆ TemplateSource

enum class TemplateSource
strong
Enumerator
Inline 
FromFile 

Definition at line 20 of file HtmlTemplateView.h.

20 {
21 Inline,
23 };