Documentation
¶
Overview ¶
templ: version: v0.3.924
templ: version: v0.3.924
Index ¶
- func BaseHead() templ.Component
- func CurrencyTabs(activeTab string) templ.Component
- func EmptyState() templ.Component
- func IndexPage(activeTab string, initialTimestamp string) templ.Component
- func IndexScripts(activeTab string) templ.Component
- func LastUpdatedFooter(initialTimestamp string) templ.Component
- func PageHeader() templ.Component
- func RateWithIndicator(rate float64, change float64) templ.Component
- func RefreshButton() templ.Component
- func RenderHTML(w http.ResponseWriter, r *http.Request, c templ.Component)
- func TabButton(tab, fullName, shortName string, isActive bool) templ.Component
- func TabContent(banks []Bank, lastUpdated time.Time, currency string) templ.Component
- func TabsPanel(activeTab string) templ.Component
- func UniversalRatesView(banks []Bank, currency string) templ.Component
- type Bank
- type CurrencyRate
- type Rates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrencyTabs ¶
func EmptyState ¶
func IndexScripts ¶
func LastUpdatedFooter ¶
func PageHeader ¶
func RefreshButton ¶
func RenderHTML ¶
Helper to render templ components consistently.
func TabContent ¶
Содержимое таба с универсальным отображением
Types ¶
type CurrencyRate ¶
type Rates ¶
type Rates struct {
USD CurrencyRate
EUR CurrencyRate
RUB CurrencyRate
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.