GitXplorerGitXplorer
j

tagstr

public
52 stars
6 forks
5 issues

Commits

List of commits on branch main.
Verified
f537e71042de652057abe975dcab9de15bf0ad2c

Fixes from Dave. (#53)

ppauleveritt committed 4 months ago
Verified
6b2c8f3b01e8dec33c7cf14edfd55c66decd53dd

Add an explainer document for decisions on changes. (#52)

ppauleveritt committed 4 months ago
Verified
e3e29df69c801fa98f95b30f85697d295bfc3e00

Polish code examples in the PEP & disallow dotted/expression tags (#50)

llysnikolaou committed 6 months ago
Verified
aa716e537a499982bea382928743ca497604581e

Reserved words and split strings

ppauleveritt committed 6 months ago
Verified
5dba1e7e2ad70d4390e603be34a1484d9392d52b

Drop colon and link to PEP section. (#48)

ppauleveritt committed 7 months ago
Verified
64751805da9981c5dc3884d12680ad37f1f29b34

Add Lysandros as sponsor. (#47)

ppauleveritt committed 7 months ago

README

The README file for this repository.

Tag strings

This PEP introduces tag strings for custom, repeatable string processing. Tag strings are an extension to f-strings, with a custom function -- the "tag" -- in place of the f prefix. This function can then provide rich features such as safety checks, lazy evaluation, domain specific languages (DSLs) for web templating, and more.

Tag strings are similar to JavaScript tagged templates <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates>_ and similar ideas in other languages.

Examples repo

To keep the conversation here focused on the PEP, we moved supporting material to a companion repo. There you can find resources such as:

  • JupyterLite playground for tag strings
  • Docker builds
  • Long-form tutorials
  • Example code

Related Work