-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templates #3
Comments
Interesting idea! Do you think there's major benefits over just letting people define their own alias? alias debug="pjs -e -f \"!!~$.indexOf('DEBUG')\" -m '\"Found debug entry: \" + $'" |
They are easier to read and extendable with the help of the npm ecosystem :) A template author could use external modules for doing crazy manipulations (for example). The consequence will be that |
Hm, I like that idea. Though I don't think I'd have pjs run an
I'm undecided as to which solution would be ideal. Of course, the alternative to any of the above would be to let the user manage their own dependencies for their templates, installing them globally under their user just as |
@akoenig any thoughts on the above? |
Hm, hard to say how to handle this scenario. I think that I tend to install pjs templates globally (like yeoman generators) which might have the positive effect of creating a new pjs-* ecosystem with useful template modules .. hehe |
sounds like a good idea to me as well! |
Closing because I don't think anyone actually uses this project haha Though PRs are certainly welcome. |
@danielstjules, what do you think of a template feature? Something where you can define CommonJS-style modules for repeating filter/map/reduce tasks, like:
~/.config/pjs/templates/debug-log.js
could be used in
pjs
as:The text was updated successfully, but these errors were encountered: