I'm doing statics on html5. I have many HTML lines of the same type:
<meta name="keywords" content="any keywords" />
<meta name="description" content="any description" />
The site has many pages, and editing these lines takes a lot of time for each individual file *.erb
.
I wanted to find out how to call the required string from a single * .erb
file. If I use <%= partial '...' %>
in this case, the entire file will be called. Tell me if any opportunity to call only those lines which are necessary. I do not know how to call any line parts of a file from one file *.erb
using middleman3. Perhaps there is a method to call from a file - lines by numbers, or any method.
===
since i'm a beginner maybe i don't understand is it possible? look at the picture
Hello i am meta keyword
-> go to application.html.erb, inside add: <%= render 'shared/meta_keywords' %> repeat those steps if you need more static partials (like you've said). If you don't follow these steps, it wont work. – Prometheus Feb 19 '19 at 12:52Hello i am meta keyword h3> but also
– Vision 10 Feb 20 '19 at 06:34Hello i am meta keyword 2 h3> and
Hello i am meta keyword 3 h3>. And send them not in one file layouts but in several.