Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

White space issues when creating objects in views? #30

Open
schlegelrock opened this issue Aug 30, 2011 · 0 comments
Open

White space issues when creating objects in views? #30

schlegelrock opened this issue Aug 30, 2011 · 0 comments

Comments

@schlegelrock
Copy link

In an view.eco, I have the following snippet that I want to pass to my layout.eco.

<% @meta = { "title" : "Learning Resources", "key": "learn", "css": [ "/css/learn.css", "/css/dialog.css" ] } %>

I can't for the life of me figure out how to line break it so the parser won't barf. Desired output would be...

<% @meta = 
    title : "Learning Resources" 
    key: "learn"
    css: [ /css/learn.css, /css/dialog.css ] 
%>

The documentation suggests that I can add a colon (:) to escape a line break but I am either doing it wrong or it doesn't work.

Thoughts?

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

1 participant