The reason I asked for the URL examples is because I wanted to understand
the nature of the dynamic part.
I was curious if maybe the kind of need that you have from the parser
couldn't be solved without flags.
Why couldn't you just trim the url in the parser function?
On Tue, Sep 13, 2016
Ok, the solution would look like this; but not sure if it's ok to create a
new parser every time the addressbar changes...
https://github.com/aische/navigation/blob/master/src/Navigation.elm (new
function: programWithFlags' )
In my case it is because I have a single app that can be instanced into
multiple pages (or twice in a single page) and need to prune the url of a
part that needs to be ignored and need to completely ignore the url
entirely (pure internal navigation for this state). The url's can be
dynamic so
Out of curiosity, what functionality are you actually trying to achieve?
I'm trying to understand the need behind wanting to be dynamic in ignoring
a certain part of the url.
Can you give some URL examples that show what you want to achieve?
On Tue, Sep 13, 2016 at 8:12 PM, OvermindDL1
Does not work in my case of needing to specify a part of the url to ignore
and to only change the remaining part. Right now I just have this in my
code to 'work around it for now':
```
module SomeApp.Hacks exposing (..)
{-| https://github.com/elm-lang/navigation/issues/9
-}
navigationHack :
That's a good idea. It does not play well with the architecture of the
program I was working on, but I will investigate it. Thank you!
BTW, I just realized, that my original suggestion would not work, because
the parser is used at two places; in the init-function it has access to the
flags,
On Tue, Sep 13, 2016 at 6:55 PM, wrote:
>
> 2. Giving the Url-Parser (of the Navigation package) access to the program
> flags.
>
> This was a little show stopper for me. I wanted to write a single page app
> that does not have to be recompiled if you switch the
Hello everyone,
Elm is great, and version 0.17 is wonderfull. Most of the time, programming
in Elm feels like exactly how you would like to build things. A big
thank-you to all the people who made it happen!
However, I stumbled over two litte things that could be improved. One
concerns the