[elm-discuss] Re: Elm as templating engine

2017-09-02 Thread Gusztáv Szikszai
You need to use `attribute` with an empty string as 
value. https://ellie-app.com/4ckwSKX7YKGa1/0

On Sunday, September 3, 2017 at 1:18:26 AM UTC+2, Birowsky wrote:
>
> Trying to use elm as a templating engine for AMP pages. But they have 
> specific requirements where I need to specify attributes without values. Is 
> that possible with some elm construct?
>
> https://www.ampproject.org/docs/tutorials/create/basic_markup
>
> for an example:
>
> amp =
> boolProperty "⚡" True
>
>
> creates `⚡="true"` instead of just the `⚡`
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Elm as templating engine

2017-09-02 Thread Birowsky
Trying to use elm as a templating engine for AMP pages. But they have 
specific requirements where I need to specify attributes without values. Is 
that possible with some elm construct?

https://www.ampproject.org/docs/tutorials/create/basic_markup

for an example:

amp =
boolProperty "⚡" True


creates `⚡="true"` instead of just the `⚡`

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] *** Getting URL of new tab that was launched in JavaScript

2017-09-02 Thread kgashok
I am looking for JavaScript code to get the *URL of a new tab/window* (no 
cross-origin issues) that was launched from an existing window. 

I have had this up on Stackoverflow as a Javascript question 
.
 
 And also have a bounty of 50 points which expires in < 2 days. 
I know this has nothing to do with Elm *directly. *However, I do see doing 
something like this in a future Elm project. 

So thanks for forbearing with this and helping out as well!

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.