Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zen coding img src from a list

Tags:

html

emmet

I'm trying to create a large list of img tags from a list of filenames using zen coding to fill the src attribute with my list of filenames.

Here's what I have and what I want to do with it:

filenameA.jpg
someotherone.jpg
anotherimage.jpg
sample.jpg

Zen coding results:

<img src="images/filenameA.jpg" />
<img src="images/someotherone.jpg" />
<img src="images/anotherimage.jpg" />
<img src="images/sample.jpg" />

I've tried wrapping the list with abbreviation: img[src=] but I don't know the proper way to do it.

Thanks for the help :)

like image 314
Tony Avatar asked Apr 03 '12 21:04

Tony


1 Answers

Try this abbreviation (works in Zen Coding v0.7):

img[src=images/$#]*

like image 153
Sergey Chikuyonok Avatar answered Sep 24 '22 23:09

Sergey Chikuyonok