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

Iterating and working with collections #51

Closed
Bassov opened this issue Dec 29, 2015 · 1 comment
Closed

Iterating and working with collections #51

Bassov opened this issue Dec 29, 2015 · 1 comment

Comments

@Bassov
Copy link

Bassov commented Dec 29, 2015

Hello,

I have a trouble with iterating over an array. I have an array of objects, that have other objects and i want to get this value in each element of array and past it in link. In ruby i will use this code:

- if @attachments
  - @attachments.each do
    a href="#{@attachments.file.url}" "#{@attachments.file_name}"

So how I can handle it in skim? I cant find the way.

@achempion
Copy link

Skim is not based on ruby, skim is based on coffee, so, just write your code in coffee instead of ruby :)

here is an example of what you need - https://github.com/appjudo/skim/blob/master/test/test_code_blocks.rb#L75

@Bassov Bassov closed this as completed Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants