2025-05-08 17:13:51 +02:00
|
|
|
// the regexps below are shared, so they shoudn't have state (no 'g' flag)
|
2025-05-21 15:09:47 +02:00
|
|
|
export const variableRegex = /\{([^{#\/:]+?)\}/
|
2025-07-21 18:58:51 +02:00
|
|
|
export const imageMarkerRegex = /{#image\s+([^}]+?)\s*}/;
|
2025-05-08 17:13:51 +02:00
|
|
|
|
|
|
|
|
export const ifStartMarkerRegex = /{#if\s+([^}]+?)\s*}/;
|
|
|
|
|
export const elseMarker = '{:else}'
|
|
|
|
|
export const closingIfMarker = '{/if}'
|
|
|
|
|
|
|
|
|
|
export const eachStartMarkerRegex = /{#each\s+([^}]+?)\s+as\s+([^}]+?)\s*}/;
|
2025-07-21 18:58:51 +02:00
|
|
|
export const eachClosingMarker = '{/each}'
|