0
Lí in a reply that in php we can do like this:
<div class="fb-comments" data-href="<?php echo $url; ?>" data-width="687" data-numposts="7" data-colorscheme="light"></div>
<?php
$url = (!empty($_SERVER['HTTPS'])) ? 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
?>
However, I use Node.js and jade template engine, with jade template engine we can put in the "master page" a "block" and inside the block the content that will appear on all other pages, as could do to have dynamically each url of the respective pages, in Javascript, without having to put a comment box with their respective url on each page of the site?
Just copy and paste the res.render in app.js ? I appreciate this north, I will try to find the solution via express, I had forgotten the express.
– Thiago Jem
So the res.render has to do with your route right, you have to configure the functions you want to pull what you want and etc, but the scheme is to pass the variable 'minhaurl' q will give good :D
– user1576978
I appreciate the availability to help, friend, but I already found the solution via traditional javascript. It works exactly as wanted.
– Thiago Jem