Using a JavaScript Framework with Flare
-
- Propeller Head
- Posts: 16
- Joined: Fri Dec 22, 2017 1:49 am
Using a JavaScript Framework with Flare
Is it possible to use a JavaScript framework within Flare? Specifically React, Angular, or VueJS. I am not looking at using jQuery.
Re: Using a JavaScript Framework with Flare
Flare HTML5 output uses jQuery, parts of Foundation, and some custom MadCap scripts.headphone_jack wrote:Is it possible to use a JavaScript framework within Flare? Specifically React, Angular, or VueJS. I am not looking at using jQuery.
So I guess the question is whether they would conflict with the frameworks that you mention?
-
- Propeller Head
- Posts: 16
- Joined: Fri Dec 22, 2017 1:49 am
Re: Using a JavaScript Framework with Flare
Thanks for your quick reply Dave.Dave Lee wrote:So I guess the question is whether they would conflict with the frameworks that you mention?
Looking at the markup, there's a whopping 11 JS files that Flare kicks out. After a bit of playing around, I've found that require.min.js and require.config.js are causing VueJS not to run.
So I think I've answered my own question. Technically yes Flare might work with a JS framework, but it'd require a massive amount of hacking around and post-build tasks.
Re: Using a JavaScript Framework with Flare
A long long time ago, I used the datatables plugin, and had to load that via RequireJS.
I got it working, although I can't say I ever got to grips with RequireJS.
Anyway, this post might give you some pointers (on loading a library via the require config):
viewtopic.php?f=9&t=19291#p101300
I got it working, although I can't say I ever got to grips with RequireJS.
Anyway, this post might give you some pointers (on loading a library via the require config):
viewtopic.php?f=9&t=19291#p101300
-
- Propeller Head
- Posts: 16
- Joined: Fri Dec 22, 2017 1:49 am
Re: Using a JavaScript Framework with Flare
I'm going to see if I can find a way to remove Require.js completely, or at least have it load after Vue. Thanks for your help Dave.
Re: Using a JavaScript Framework with Flare
I believe Require is bundled with Flare as most things conflict with Flare's foundational JS if not consumed by Require instead. But good luck!
Re: Using a JavaScript Framework with Flare
@headphone_jack or anybody
Is there any way to integrate the HTML, CSS, JS output of flare into an Angular SPA?
Is there any way to integrate the HTML, CSS, JS output of flare into an Angular SPA?
-
- Propeller Head
- Posts: 16
- Joined: Fri Dec 22, 2017 1:49 am
Re: Using a JavaScript Framework with Flare
Sorry for the late reply Alihassan. I'm not aware of any way to integrate Angular into Flare unfortunately. Flare's web side is incredibly outdated, and struggles to keep up with the industry.alihassan wrote:@headphone_jack or anybody
Is there any way to integrate the HTML, CSS, JS output of flare into an Angular SPA?
-
- Propeller Head
- Posts: 62
- Joined: Sat Dec 10, 2005 8:06 pm
- Location: Calgary, AB Canada
Re: Using a JavaScript Framework with Flare
Is it still true Flare doesn't play well with Angular.js?
Craig Prichard
craig.prichard@gmail.com
craig.prichard@gmail.com