Comments (7)
I want to stick with indentation. It should be relatively easy to implement :) would you like to take this issue? Pull requests are welcome
On Sat, May 3, 2014 at 7:18 AM, Christian Di Lorenzo
[email protected] wrote:
Are you still planning on having an
end
for the case statement or are you planning to just use indention?Reply to this email directly or view it on GitHub:
#22 (comment)
from calliope.
BTW, would it be more consistent to have the indentation for the different case values be before the -
as in this example? This would allow the indentation detection as it currently works to be closer to what is needed.
- case data do
- { :ok, content } ->
%p= content
- :error ->
%p Something went wrong
from calliope.
I thought about that & I think I would prefer it. The question though is how would if
/else
look?
Would we be ok with a syntax like:
- if true do
%p Hello
- else
% Goodbye
from calliope.
Probably not for the if
/else
scenario since in plain elixir it doesn't have the indention. However, since the case statement has indentation in plain elixir then I think it would be ok to go with it on the case
statement.
from calliope.
I'm good with that :)
from calliope.
If I get a chance, I may try and pick this one up, but I'm not so sure that it will be soon.
from calliope.
Closed with PR #40
from calliope.
Related Issues (20)
- Incorrectly removed a comma in an attribute string HOT 1
- Angular string interpolation doesn't always work correctly.
- Support json style keys HOT 1
- Angular expression in attribute doesn't parse nicely HOT 1
- Incorrectly generates ng-class attribute HOT 1
- Add test project to regress against
- Doesn't preserve returns HOT 1
- Calliope chokes on functions that take a block. HOT 2
- Evaluate conditions in attributes HOT 3
- Question: why use `-` instead of `=`? HOT 1
- Attributes with names ending with "id" get interpreted as the "id" attribute HOT 1
- Attributes: function evaluation without interpolation HOT 3
- Markdown ? HOT 1
- Double interpolation does not parse correctly
- Version 0.4.2 is unusable HOT 1
- link do .. end block HOT 2
- Attributes are often not parsed correctly
- Phoenix.View.render_to_string error
- Remove nil values from hash attributes HOT 1
- Javascript rendering is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calliope.