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

Add pair of operations to control current URL context #220

Open
neocotic opened this issue Mar 3, 2015 · 0 comments
Open

Add pair of operations to control current URL context #220

neocotic opened this issue Mar 3, 2015 · 0 comments

Comments

@neocotic
Copy link
Member

neocotic commented Mar 3, 2015

Users should be able to use URL-specific variables and operations but I can only see this as achievable by adding a pair of new operations that allows the user to change the URL in the current context. For example:

{#switch}http://example.com{/switch}
{host}
{revert}
{host}

... would print:

example.com
github.com

However, we'll also need to consider nested switches and reverts so this is likely more complicated than it would seem, probably requiring some sort of stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant