CzompiSoftware / CzompiSoftware/CwATE-MA

Enable Access to Current URL in XMDL Language

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Introduce a `page.url` property within the XMDL language to allow scripts to retrieve the current document's URL. This feature will facilitate dynamic content generation based on the page's URL, enhancing flexibility and user experience.

**Proposed Implementation:**
- Implement a `page.url` property accessible within XMDL scripts to obtain the current URL.

**Use Case Example:**
```xmdl
@lua{>
local currentUrl = page.url
-- Additional Lua code utilizing currentUrl
<}
```

**Benefits:**
- Enables context-aware content rendering based on the current URL.
- Facilitates the creation of dynamic and interactive web pages.

**Additional Notes:**
This feature is essential for developers aiming to create responsive and dynamic content within the XMDL framework. Implementing access to the current URL will significantly enhance the language's capability to handle context-specific scenarios.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.