XJSX icon indicating copy to clipboard operation
XJSX copied to clipboard

Can i use include method like php in html code

Open dontKnew opened this issue 2 years ago • 8 comments

Sometimes i have 10 page of html code, in this pages, some code are usually same, now if i want to change something , now i have to change every page same thing,

Any method available in html code for include("path/to/code.html")

dontKnew avatar Apr 01 '23 02:04 dontKnew

Hello dontKnew,

Thank you for bringing this issue to my attention. I understand that updating the same code across multiple pages can be a time-consuming and repetitive task, and i am sorry for any inconvenience it may have caused.

I am pleased to inform you that am currently working on adding a feature to this framework (xjsx) that will allow you to include external HTML code in your pages. This feature will allow you to easily update common code across multiple pages, without having to make changes to each individual page.

I aim to include this feature in my next release, which is currently scheduled for April/2/2023. I will keep you informed of any updates or changes to this timeline, and i appreciate your patience and support as i work to improve our framework.

If you have any further questions or concerns, please don't hesitate to let me know.

Best regards, Owens94819

OwensAkpede avatar Apr 01 '23 13:04 OwensAkpede

See HISTORY.md for a list of changes and releases.

OwensAkpede avatar Apr 01 '23 18:04 OwensAkpede

Hey dontKnew,

Check if this meets your satisfaction, include (example)

OwensAkpede avatar Apr 02 '23 00:04 OwensAkpede

Yh its working fine!

Thanks you so much for that!❣

dontKnew avatar Apr 02 '23 05:04 dontKnew

Hey dontKnew,

Check if this meets your satisfaction, include (example)

inline css not working in include html and its also break include function with inline css

dontKnew avatar Apr 05 '23 05:04 dontKnew

Sorry for the late response... The css issues was fixed since v0.5.0, get the lastest version here .

The css issues was a feature intended to filter out irrelevant element such as <title, meta, link, style, script>

Well, that feature has been removed and everything should work perfectly fine😎

Always stay tuned to History.md

Also here's a recent update about your other suggestions "break your function...", I updated it to v0.1.0 cuz previous version was v0.0.2 See here

OwensAkpede avatar Apr 18 '23 00:04 OwensAkpede

Once again thank you for your contribution and support ♥️

OwensAkpede avatar Apr 18 '23 01:04 OwensAkpede

Here my Facebook
Am more active there

OwensAkpede avatar Apr 18 '23 02:04 OwensAkpede