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

Add support for attributes to r:files #36

Closed
adamjohnson opened this issue Aug 7, 2015 · 2 comments
Closed

Add support for attributes to r:files #36

adamjohnson opened this issue Aug 7, 2015 · 2 comments
Assignees

Comments

@adamjohnson
Copy link
Contributor

It'd be sweet if hammer would support the attributes for r:files like labels, limit, types, and random. I'd wager the most noticeable ones are limit and maybe random. Code snippet:

<style>
.example {
  background-image: url(<r:files:each labels="random-image-collection" limit="1" types="image" random="true"><r:file:image_url size="1560x636" /></r:files:each>);
}
</style>

Having a look through cleanslate/lib/slate/radius/tags/asset.rb will likely be helpful.

Related to #19.

@zeroedin
Copy link
Contributor

@adamjohnson when you can test out what functionality here is still missing and what needs added.

@zeroedin
Copy link
Contributor

Marking as fixed in 849a79a

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