Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Save Snapshots into Folder Structrue #6

Open
pburgmer opened this issue Jul 2, 2013 · 6 comments
Open

Save Snapshots into Folder Structrue #6

pburgmer opened this issue Jul 2, 2013 · 6 comments

Comments

@pburgmer
Copy link

pburgmer commented Jul 2, 2013

It would be nice to be able to save the snapshots into a folder structure instead of a flat list. A nested folder structure makes it easier to write a url rewrite rule.

Example:
Hash-Bang-Url: #!/company/management
Flat snapshot file: snapshot___company_management.html
Nested folder snapshot file: snapshot/company/managment.html

At the moment you're able to configure 'snapshotPath' and 'fileNamePrefix'. But within 'snapshotPath' folder all snapshot files a saved with _ as replacement for slashes in the hash bang url. One more option to configure the grunt task not to replace the slashes of the hash bang url should be enough to get it working with folder structures. Then, together with 'snapshotPath' and 'fileNamePrefix' you're able to get a structure shown in the example.

@cburgdorf
Copy link
Owner

+1 would you like to create a PR?

@pburgmer
Copy link
Author

pburgmer commented Jul 4, 2013

Hopefully I find time to code it this weekend ...

@cburgdorf
Copy link
Owner

Great! Looking forward to it!

@reneras
Copy link

reneras commented Jul 28, 2013

+1

@amercier
Copy link

+1

1 similar comment
@wcandillon
Copy link

+1

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

No branches or pull requests

5 participants