Free knowledge blog: linux, programming, open source, databases, android, frameworks, web and computing in general
In Svelte we can define functions that are going to be called when an event is triggered. For example, to call
holaMundo on the
click of an element we can indicate it as
Sometimes it is necessary to pass parameters to that function inside a Svelte component, but we cannot indicate it like this:
Since that will execute the function as soon as the component is loaded, and won’t wait for the click.
In this post I will show you how to pass arguments to functions in Svelte without calling them automatically.
Today I am going to present you a plugin that I have just created. It is a plugin to print a PDF file silently, that is, without asking the user for confirmation.
The best thing about this is that you can use the virtual printers that Windows offers, in this way you can do your tests in an ecological way.
Throughout this post I will show you the documentation of the plugin and all the details of it, including how you can get it.
In this post I will show you how to enable CORS (Cross Origin Resource sharing) so that you can make HTTP requests from a different domain than the one you use for your Flask application written in Python.
We will just add a kind of middleware to modify all the responses and add the headers that allow CORS in Flask.