Replies: 6 comments
-
note to self: @TheMatten and I discussed some ideas on supporting general template functions (using the |
Beta Was this translation helpful? Give feedback.
-
i think we should add |
Beta Was this translation helpful? Give feedback.
-
@babygau Neuron generates Anyway what we are talking about is unrelated to this issue; it should be a discussion in a new issue. |
Beta Was this translation helpful? Give feedback.
-
tks u for response. i asked because i came from here (meta data) and it doesn't mention title. i also had an warning error complain about malformed data when i have title: metadata |
Beta Was this translation helpful? Give feedback.
-
Guess we should document it then. As for the metadata error, try putting the title in double quotes (having to do this is yet another reason to prefer regular Markdown titles). |
Beta Was this translation helpful? Give feedback.
-
Revision 2 This proposal could further be simplied. No need for a hardcoded list files; just put the templates in |
Beta Was this translation helpful? Give feedback.
-
I imagine we don't need a very flexible template system.
Initial proposal, to be refined:
a subdirectory, eg:(see Revision 2 below)./templates/daily.md
__
(see below)neuron new --template=daily
use the specified templateHere's a sample template,
./template/daily.md
:We may even go one step ahead and support arbitrary key value pairs (
neuron new --template=daily --data="key1=123"
), with__KEY1__
somewhere in the template body.Beta Was this translation helpful? Give feedback.
All reactions