Skip to content

@tyravel/views

Blade-like view engine for Tyravel

Install

bash
npm install @tyravel/views

Metadata

FieldValue
Version1.0.1
Sourcepackages/views
CategoryViews & client
Node.js>=26

Tyravel dependencies

Public exports

From the package entry point (dist/index.d.ts). Deep imports are not supported.

Values

  • BUILTIN_ESCAPE_CONTEXTS
  • BUILTIN_VIEW_DIRECTIVES
  • CompileOptions
  • CompiledViewCacheMissError
  • ComponentCatalogEntry
  • ComponentCatalogExportEntry
  • ComponentPropDefinition
  • CustomDirectiveHandler
  • DEFAULT_VIEW_CONFIG
  • DefineViewProps
  • ECHO_CONFIG_SCRIPT_ID
  • EscapeHandler
  • FragmentCacheStore
  • HydrationIsland
  • HydrationManifest
  • InMemoryFragmentCache
  • IslandCatalogEntry
  • IslandMountContext
  • IslandMountTarget
  • ProgrammaticIslandMountFn
  • ProgrammaticViewModule
  • StreamSection
  • ValidationErrors
  • ViewAttributeBag
  • ViewAuthBindings
  • ViewCatalog
  • ViewCatalogExport
  • ViewCompileError
  • ViewComponentBinding
  • ViewComposerHandler
  • ViewEngine
  • ViewErrorBag
  • ViewExpressionBindings
  • ViewFormBindings
  • ViewFragmentNotFoundError
  • ViewInjector
  • ViewLintIssue
  • ViewLintOptions
  • ViewLintRule
  • ViewLintSeverity
  • ViewLocaleBindings
  • ViewPropsValidationError
  • ViewRegistry
  • ViewWatcher
  • ViewWatcherOptions
  • ViteManifest
  • ViteManifestEntry
  • buildComponentCatalog
  • buildIslandCatalog
  • buildViewCatalog
  • cacheFileForView
  • clearCompiledCacheDir
  • collectClassNames
  • collectStreamSections
  • compile
  • createViewWatcher
  • discoverViewNames
  • encodeJsonForHtml
  • escapeCss
  • escapeHtml
  • escapeJs
  • escapeUrl
  • evaluateExpression
  • findFragmentBody
  • flattenTranslations
  • formatCompileLocation
  • generateViewPropsDeclarationFile
  • generateViewPropsMapInterface
  • inspectComponent
  • lintHasErrors
  • lintViewSource
  • loadLocaleFile
  • loadProgrammaticView
  • mergeComponentProps
  • mergeEvaluationContext
  • parsePropsExpression
  • parsePropsSchema
  • parseViewName
  • readCompiledCache
  • readViteManifest
  • renderClassDirective
  • renderCsrfField
  • renderEchoBootstrap
  • renderFormAttribute
  • renderIslandWrapper
  • renderMethodField
  • renderStyleDirective
  • renderViteTags
  • resolveViewLintStrict
  • serializeViewCatalog
  • shouldRequireCompiledCache
  • streamPlaceholder
  • translate
  • validateViewProps
  • writeCompiledCache

Types

  • CompiledTemplate
  • ConditionalMode
  • EchoClientConfig
  • RenderMode
  • RenderOptions
  • SerializedCacheEntry
  • TemplateOp
  • ViewConfig
  • ViewContext
  • ViewPropsFor
  • ViewPropsMap

Guide

See the Views & templating guide for usage examples.

Released under the MIT License.