resFactory / factory

Resource Factory is a universal approach to originating, refining, and rendering Markdown, HTML, type-safe SQL, or other assets that could comprise static sites or engineering artifacts.
GNU Affero General Public License v3.0
0 stars 3 forks source link

Implement Proxied Content (dynamic variables) #40

Open shah opened 2 years ago

shah commented 2 years ago

Create proxied content infuse and interpolate (PCII) Markdown directive for including dynamic content from modules. This directive is called PCII because content is proxied (delegated from somewhere else), is infused (included) into the current text stream, and is (optionally) interpolated dynamically if the symbol is a function.

Spec:

:pcii[symbol]                                 find first instance of symbol in any module
:pcii[symbol]{module="module.ts"}             if module.ts is unique across all folders
:pcii[symbol]{module="path/path/module.ts"}   if module.ts is found in multiple paths

where symbol is the name of an exported variable or function in path/path/module.ts.

shah commented 2 years ago
shah commented 2 years ago

We also need to add the ability for directives to be recursively rendered in case the result of PCII content has Markdown.