S
S
SWFaust2016-11-12 16:53:09
Laravel
SWFaust, 2016-11-12 16:53:09

What is this construct in the Blade template?

I recently added this package to the Laravel project: laradrop.elegrit.com/file-manager-example I
redefined its templates, but I came across the following construction in them: prntscr.com/d6bz52
I have never seen such a way to display variables in Blade, and in I didn't find any documentation about it.
In this case, variable data is only displayed, but it is impossible to access them in any way (for example, to do a check).
I dug up the source code of the package and came across the second point, which baffled me. Nothing is passed to templates at all. In the controller, templates are only rendered without passing anything to them prntscr.com/d6c03w, there are no composers in the package, I didn’t find other places where something could be passed to templates either ...
Actually, I have two questions:
1. What kind of construction is this: in the template and with what are eating?
2. How could the data get into the template?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2016-11-12
@SWFaust

This design was taken by the author for a simple replace in js. This is not a design of the templating blade itself, and this design is not registered anywhere in the providers. Here is the js code for this package. As you can see, in the example with this is just a string that indicates the current time, and then it is simply replaced.3524b1b9d48244dd94eae901b8d4980c.pnge5e9962bd0b04056ba45a4f6236aa899.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question