0

On my developing folder (not the public flolder) I have a first html file a.html, that I'm planning to use on more than one page :

<p> AAA </p>

And a second file b.html, which is gonna be one of the many files that are gonna contain the code of the first file a.html :

 <body>

    <div id="a_html"></div>
    <script>
        $(function(){
            $("#a_html").load("a.html"); 
        });
    </script>
    
</body>

My question is: is there a way that I can use to automaticlly generate a static html file b.html that looks like this? :

<body>

    <div id="a_html"> <p> AAA </p> </div>

</body>

0 Answers0