{"id":11578,"date":"2014-01-31T16:12:35","date_gmt":"2014-01-31T10:42:35","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=11578"},"modified":"2014-01-31T16:12:35","modified_gmt":"2014-01-31T10:42:35","slug":"using-ejs-in-your-node-js-application","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/","title":{"rendered":"Using EJS in your Node.JS application"},"content":{"rendered":"<p>EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way.<\/p>\n<p>In a Node.JS application(here we are using an <a href=\"http:\/\/expressjs.com\/\">express<\/a> application), you need to set the value of &#8216;view engine&#8217; parameter to &#8216;ejs&#8217;.<\/p>\n<p>[js]<br \/>\nvar app = express();<br \/>\napp.set(&#8216;view engine&#8217;, &#8216;ejs&#8217;);<br \/>\n[\/js]<\/p>\n<p>Now request goes to backend, a function is called there which renders the ejs file:<br \/>\n[js] res.render(&#8216;demo&#8217;, {data:data})[\/js]<\/p>\n<p>Lets say it returns JSON data like:<br \/>\n<code>{name: 'Sakshi', age : '24', hobbies: ['blogging', 'reading']}<br \/>\n<\/code><\/p>\n<p>Now the final step, Rendering the ejs file. Our demo.ejs looks like:<\/p>\n<p>[js]<br \/>\n&lt;html&gt;<br \/>\n  &lt;body&gt;<br \/>\n  &lt;br\/&gt;<br \/>\n    &lt;h2&gt;EJS Demo!!!&lt;\/h2&gt;<br \/>\n    &lt;div&gt;Name : &lt;%= data.name%&gt;&lt;\/div&gt;<br \/>\n    &lt;div&gt;Age : &lt;%= data.age%&gt;&lt;\/div&gt;<br \/>\n  &lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n[\/js]<\/p>\n<p>Output:<br \/>\n<code>Name: Sakshi<br \/>\n Age: 24<br \/>\n<\/code><\/p>\n<p>Some useful ejs tags are:<br \/>\n1.<strong> &lt;% &gt;<\/strong> : This tag executes all the JavaScript code present inside it. So we can easily use for loops, if\/else statements, switch statements and variable declarations inside the EJS template.<br \/>\nFor examlpe:<br \/>\n[js]<br \/>\n &lt;table&gt;<br \/>\n        &lt;tr&gt;<br \/>\n          &lt;th&gt;Name&lt;\/th&gt;<br \/>\n          &lt;th&gt;Age&lt;\/th&gt;<br \/>\n          &lt;th&gt;Email&lt;\/th&gt;<br \/>\n        &lt;\/tr&gt;<br \/>\n&lt;% result.forEach(function(obj){ %&gt;<br \/>\n        &lt;tr&gt;<br \/>\n          &lt;td&gt;&lt;%=obj.name%&gt;&lt;\/td&gt;<br \/>\n          &lt;td&gt;&lt;%=obj.age%&gt;&lt;\/td&gt;<br \/>\n          &lt;td&gt;&lt;%=obj.email%&gt;&lt;\/td&gt;<br \/>\n        &lt;\/tr&gt;<br \/>\n        &lt;%})%&gt;<br \/>\n&lt;\/table&gt;<br \/>\n[\/js]<\/p>\n<p>2.<strong> &lt;%= &gt;<\/strong> : The value of the variable present between this tag is printed as it is given by JSON data.<\/p>\n<p>3. <strong>&lt;%- &gt;<\/strong> : This tag renders the actual html code present between it.<br \/>\nFor example:<br \/>\nJSON data = {myPage : &#8220;&lt;html&gt;&lt;body&gt;&lt;h3&gt;Hello World&lt;\/h3&gt;&lt;\/body&gt;&lt;\/html&gt;&#8221;}<\/p>\n<p>So for rendering this html code we use:<br \/>\n[js]<br \/>\n&lt;div&gt;&lt;%- myPage&gt;&lt;\/div&gt;<br \/>\n[\/js]<\/p>\n<p>4. <strong>&lt;%== &gt;<\/strong> : This tag is commonly used to include templates in other templates.<\/p>\n<p><strong>NOTE<\/strong>: EJS also allow us to include another ejs template or file into our current ejs page. This can be done using &lt;% include otherPage.ejs %&gt;.<\/p>\n<p>Hope this will help \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of &#8216;view engine&#8217; parameter to &#8216;ejs&#8217;. [js] var app = express(); app.set(&#8216;view [&hellip;]<\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":34,"footnotes":""},"categories":[1],"tags":[1294,1124],"class_list":["post-11578","post","type-post","status-publish","format-standard","hentry","category-technology","tag-ejs","tag-node-js"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of &#039;view engine&#039; parameter to &#039;ejs&#039;. [js] var app = express(); app.set(&#039;view\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sakshi Tyagi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Using EJS in your Node.JS application | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of &#039;view engine&#039; parameter to &#039;ejs&#039;. [js] var app = express(); app.set(&#039;view\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using EJS in your Node.JS application | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of &#039;view engine&#039; parameter to &#039;ejs&#039;. [js] var app = express(); app.set(&#039;view\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#article\",\"name\":\"Using EJS in your Node.JS application | TO THE NEW Blog\",\"headline\":\"Using EJS in your Node.JS application\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sakshi\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-01-31T16:12:35+05:30\",\"dateModified\":\"2014-01-31T16:12:35+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#webpage\"},\"articleSection\":\"Technology, ejs, node.js\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#listItem\",\"name\":\"Using EJS in your Node.JS application\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#listItem\",\"position\":3,\"name\":\"Using EJS in your Node.JS application\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sakshi\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sakshi\\\/\",\"name\":\"Sakshi Tyagi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a42c6deb088e18815dfcfed629c77b032d17bf973881421880b9c5e4ba713739?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sakshi Tyagi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/\",\"name\":\"Using EJS in your Node.JS application | TO THE NEW Blog\",\"description\":\"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of 'view engine' parameter to 'ejs'. [js] var app = express(); app.set('view\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-ejs-in-your-node-js-application\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sakshi\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sakshi\\\/#author\"},\"datePublished\":\"2014-01-31T16:12:35+05:30\",\"dateModified\":\"2014-01-31T16:12:35+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using EJS in your Node.JS application | TO THE NEW Blog","description":"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of 'view engine' parameter to 'ejs'. [js] var app = express(); app.set('view","canonical_url":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#article","name":"Using EJS in your Node.JS application | TO THE NEW Blog","headline":"Using EJS in your Node.JS application","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sakshi\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2014-01-31T16:12:35+05:30","dateModified":"2014-01-31T16:12:35+05:30","inLanguage":"en-US","commentCount":5,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#webpage"},"articleSection":"Technology, ejs, node.js"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#listItem","name":"Using EJS in your Node.JS application"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#listItem","position":3,"name":"Using EJS in your Node.JS application","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/sakshi\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/sakshi\/","name":"Sakshi Tyagi","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a42c6deb088e18815dfcfed629c77b032d17bf973881421880b9c5e4ba713739?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sakshi Tyagi"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/","name":"Using EJS in your Node.JS application | TO THE NEW Blog","description":"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of 'view engine' parameter to 'ejs'. [js] var app = express(); app.set('view","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sakshi\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sakshi\/#author"},"datePublished":"2014-01-31T16:12:35+05:30","dateModified":"2014-01-31T16:12:35+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Using EJS in your Node.JS application | TO THE NEW Blog","og:description":"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of 'view engine' parameter to 'ejs'. [js] var app = express(); app.set('view","og:url":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Using EJS in your Node.JS application | TO THE NEW Blog","twitter:description":"EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of 'view engine' parameter to 'ejs'. [js] var app = express(); app.set('view","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"11578","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:06:02","updated":"2024-02-29 08:53:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUsing EJS in your Node.JS application\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Using EJS in your Node.JS application","link":"https:\/\/www.tothenew.com\/blog\/using-ejs-in-your-node-js-application\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=11578"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11578\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=11578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=11578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=11578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}