Web components. Part 3: html templates and imports

Web components. Part 3: html templates and imports
Introduction

 
Greetings colleagues. This article is the third and last article in a series of articles on web components. The first two articles are available on the links:
 
Web components. Part 1: Custom elements
 
Web components. Part 2: The Shadow DOM
 
 
In this article we will talk about
element as well as HTML imports.
 
this algorithm is , the document in which is
and indicates the property value .content created DocumentFragment.
 
That is, property .content the template element contains the DocumentFragment, and the elements that were specified ...[/h]
+ 0 -

Creating templates in the IDE from Jetbrains

Introduction


 
Today I want to bring a small review-tutorial templates in the ISR from Jetbrains. The examples below will be implemented on Java in Intellij IDEA, but the creation mechanism is the same for other languages ​​and products of the company. I think all programmers in this IDE used built-in templates. For example, when you write fori, press TAB or ENTER and you have a for loop that specifies the variable name and condition, and the rest of the code is generated for you.
 
for (int i = 0; i < ; i++) {
.
}
.
.
 
Or familiar to all java programmers sout -> System.out.println ...[/h]
+ 0 -

Digest of fresh materials from the world of the frontend for the last week No. 319 (June 11 - 1? 2018)

HTML / CSS
+ 0 -

Digest of fresh materials from the world of the frontend for the last week № 318 (June 4 - 1? 2018)

We bring to your attention a selection with links to new materials from the frontend area and near it.
 
 
Digest of fresh materials from the world of the frontend for the last week № 318 (June 4 - 1? 2018)
 
Media | | Web development | | CSS | | jаvascript | | Browsers | | Entertaining
 
 
# 56 - Dmitry Karlovsky on creating $ mol or how to write your niche framework
 
Podcast "devschacht": Night frontend # 36 - Discuss with Nikolay Matvienko Ryan Dahl's speech at JSConf EU 2018
 
Podcast "Frontline Youth" (18+) " # 51 Dan Abramov Package Manager
 
...
HTML / CSS
+ 0 -

Collection of css shadows Box-shadows.css

Hello everybody!
 
 
Surely, some of you noticed that different sites use almost identical shadows in blocks, navigation bars and other containers, plus - minus a couple of pixels in the direction of transparency. I analyzed a number of popular sites, both ours and foreign ones, and tried to collect the most approximate parameters of the shadows used in one large collection, or library. To whom as it is more convenient. I hope someone will come in handy. The main goal of the project is to make it easier for novice web designers and developers to create a pleasant and modern design. Maybe experienced ...
+ 0 -

Digest of fresh materials from the world of the frontend for the last week № 316 (May 21 - 2? 2018)

We bring to your attention a selection with links to new materials from the frontend area and near it.
 
 
Digest of fresh materials from the world of the frontend for the last week № 316 (May 21 - 2? 2018)
 
Media | | Web development | | CSS | | jаvascript | | Entertaining
 
# 54 - Vsevolod Shmyrov how to become a timelid from the Flash games developer in Yandex
 
Podcast "devschacht": Night frontend # 34 - HolyJS 2018 Piter
 
Podcast "Frontline Youth" (18+) " # 49 Another look at the conference
 
Podcast "CSSSR", ...
HTML / CSS
+ 0 -

Digest of fresh materials from the world of the frontend for the last week № 315 (May 14 - 2? 2018)

We bring to your attention a selection with links to new materials from the frontend area and near it.
 
 
Digest of fresh materials from the world of the frontend for the last week № 315 (May 14 - 2? 2018) Media | | Web development | | CSS | | jаvascript | | Browsers | | Entertaining
 
 
# 53 - Vital Slobodin on the history of support for PhantomJS and the development of the Rostov IT community
 
Podcast "RadioJS" Issue 52: Microservices on the frontend . Visiting Andrey Melikhov and Vyacheslav Slinko
 
The CSSSR ...
HTML / CSS
+ 0 -

How I started to love Vue

Introduction
 
How I started to love Vue
 
This post is a logical extension of my post /article - How I stopped loving Angular / How I stopped loving Angular .
 
It is recommended to read before reading.
 
For about a year now, in all the projects I'm involved in, I use Vue instead of Angular.
 
In this post, I will share the main impressions and differences after Angular, and also tell some things from the real experience of using Vue on combat projects.
conditioned = pain
 
 
Forms ...
+ 0 -

From right to left. What is dir = rtl and how to tame the Arabic language

From right to left. What is dir = rtl and how to tame the Arabic language
 
Hello, Habr. We are recently translated into Arabic 2GIS Online, and we want to share our experience of adapting the interface for RTL (right-to-left). This will be relevant for both Hebrew and Persian.
 
I will divide this experience into two articles - theoretical and practical. Today - more about the theory. I'll tell you why we needed to turn the entire interface, which means for the interface developer the phrase "make an Arabic version" and how to cope with Arabic, mixed with English. Particular attention will be given to the algorithm by which to display a text of mixed direction - unicode ...
+ 0 -

Creating a site on Delphi, or How to use uniGUI at a minimum of

Creating a site on Delphi, or How to use uniGUI at a minimum of uniGUI Is a library that allows you to create web applications in a classic Delphi manner, through visual components, and, what is important, in most cases it completely hides the entire client (browser) "kitchen" from the developer: you do not need to know either HTML or CSS , not jаvascript, and all the development is conducted in only one language - Delphi.
 
 
If you look at the picture from a distance, then there are 3 scenarios for using the library:
 
 
 
The most favorable, for which it was created in general, when the described strong, iridescent side of uniGUI manifests itself to ...
+ 0 -