H
H
htmlbear2015-03-19 20:34:42
HTML
htmlbear, 2015-03-19 20:34:42

Is there a sublime text plugin to grab the when part from other html files?

I would like to know if there is a plugin that allows you to take parts of the html markup into separate files, and then pick them up when compiling.
For example, there is a typical page:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>

  //=header.html (подключает содержимое header.html)

<main> <h1>Hello! World!</h1>
<p> Lorem ipsum </p>
 </main>

  //=footer.html (подключает содержимое footer.html)

</body>
</html>

And then when there are a lot of pages for the template, repeating blocks are very annoying, and when you need to let's edit something in the footer on all pages.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
7
7rulnik, 2015-03-19
@7rulnik

Plugin for Grunt or Gulp seen in recent posts

P
Pavel, 2015-03-19
@mrusklon

does this happen at all? I usually stupidly use include php

H
htmlbear, 2015-03-19
@htmlbear

I read about something similar a week ago, briefly from the phone. I just accidentally came across an article, I didn’t even remember on which resource, but how I wanted to try this thing, I can’t find it anywhere.
And so the bombing feature should be.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question