Daniel Sokil

Results 86 comments of Daniel Sokil

Yes, the server fails to start, webpack says it needs `webpack-cli` package.

We could pursue a path similar to `https://pnpm.js.org` and create a symbolic link from `global/package/name` to `project/package/name`.

We could also read from ENV variable `MINT_PACKAGES_PATH`, and tools such as [asdf](https://asdf-vm.com) could create separate package's directory for every Mint version. Example: `Mint 0.10.0` - CLI Path: `.asdf/installs/mint/0.10.0/bin/mint` -...

@Eternahl This is probably what you want: ```mint component Main { fun render : Html { for (index of Array.range(0, 5)) { "[label]" } } } ``` More Info: https://reactjs.org/docs/fragments.html#short-syntax

We could also allow overwriting, the `width` and `height` attributes: https://github.com/mint-lang/mint/blob/master/src/compilers/directives/svg.cr#L18

Are those three the most important, or should we add all possible `` attributes? https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg#Attributes It seems these six are the most relevant: `preserveAspectRatio`, `viewBox`, `height`, `width`, `x`, `y`

We currently [raise an issue](https://github.com/mint-lang/mint/blob/master/src/type_checkers/directives/svg.cr#L39-L41), when the `width`, `height`, `viewBox` attributes are not defined on the SVG, is this required?

```mint const ALERT = @svg(../public/tiger.svg, preserveAspectRatio = "xMidYMid meet", viewBox = "0 0 100 100", width = 100, height = 100, x = 0, y = 0) ```

I don't understand, what you mean by that.

So putting the theme variable inside of `/` route, allows the program to compile. What if I need to share the `theme` variable with multiple routes? ```nim import os, asyncfile...