text tag...

This commit is contained in:
Chris Wanstrath 2025-11-05 15:24:29 -08:00
parent 0556efb41f
commit 2d6af63d14

View File

@ -46,6 +46,10 @@ export const ribbitGlobals = {
tag: async (tagFn: Function, atDefaults = {}) =>
(atNamed = {}, ...args: any[]) => tagFn(Object.assign({}, atDefaults, atNamed), ...args),
nospace: () => NOSPACE_TOKEN,
text: (...args: string[]) => {
buffer.push(args.join(' '))
return TAG_TOKEN
}
}
for (const name of HTML5_TAGS) {