« Aloha Kākou | Main | I've forgotten my math »
April 03, 2009
Sequencer Tool
I've just added Sequencer; it's a little web tool which acts much like a sequential search and replace. It takes a mask (template) and inserts each line from a sequence into that mask. It's much easier to show an example than try to explain it.
Mask:
user{{#}} is stored in /users/{{X}}/
Sequence:
sunny
john
donald
Given the above, sequencer will output:
user1 is stored in /users/sunny/
user2 is stored in /users/john/
user3 is stored in /users/donald/
While this is very similar to my Line Processor tool, it swaps the focus from the list to the mask and allows for a large mask.
Here's another example which highlights the strength of the Sequencer tool (from a recent web registration form I built):
Mask:
Guest {{X}}: [guest{{X}}_name]
Phone: [guest{{X}}_phone]
Email: [guest{{X}}_email]
Special: [guest{{X}}_special_needs]
Sequence:
1
2
3
4
5
This could easily be edited manually, but my actual mask is much larger and I wanted a handy way of dealing with a potentially gigantic sequence.
Anyway, I hope someone finds it useful.
Posted at April 3, 2009 04:25 PM | Web Site Stuff
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)