Skip to content
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

Scaffolding: Allow operations based on line number/regex besides placeholders #47

Open
marcooliveira opened this issue Jan 11, 2013 · 2 comments

Comments

@marcooliveira
Copy link
Member

marcooliveira commented Jan 11, 2013

You don't always have control over the files you are trying to operate on, so having the ability to work with line numbers or regular expressions would be really useful. We could simply have some match_type option that changed what the keys in the data option meant, defaulting to placeholder.

This option would support the following:

  • placeholder (default)
  • line - note that this one can create some issues, since as stuff gets appended/replaced inside the file, the line number will be changing, so we need to think this through, and plan how we really want it to perform
  • regex


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@satazor
Copy link
Member

satazor commented Jan 12, 2013

I like this, specially the regexp. I would be using it to add cache busting to urls in css, and index files.

@satazor
Copy link
Member

satazor commented Mar 2, 2013

Would also be good to have conditionals to be evaluated inside, just like a normal javascript template. Need to discuss this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants