Qwant/Instant-Answers

How to add a frontend framework (jquery, angular..) ?

Closed this issue · 2 comments

Hi,

I would like to know if it's possible to add a frontend framework ?

I tried to add in the template

<!-- public/my_ia.dot -->
<script src="javascript/angular.js"></script>

with angular.js downloaded in javascript/ folder (because direct link CDN are not working src="https://cdn.com" becomes src="localhost...https://cdn.com")

and in the front JS file :

// public/javascript/my_ia.js
Icons.prototype.run = function() {
        var app = angular.module('app', []);
    };

but it's not working

any idea ?

thanks

Hi,

It is not possible to add a frontend framework. Surely it could be done using some tricks but we wouldn't accept a Pull Request containing such changes.

What are you trying to achieve?

Ok no problem

it would be nice to have jQuery for its shorthand functions

I'm working on the JS/XML beautifier :
capture d ecran 2017-10-19 a 21 32 49

so the +/- icons should fold/unfold the section. It's easier with a framework