The High Court in Glasgow previously heard the boy had been radicalised through social media from the age of 13.
A list of "inspirations" found in his phone included Adolf Hitler, Benito Mussolini and Norwegian neo-Nazi terrorist Anders Brevik.
He had initially wanted to plant bombs at his school in December last year, before deciding to target the mosque.
Good grief!
Old enough to plan mass murders but not old enough to be named. He'll be out again in a few years so I hope he can be de-radicalised wherever he is sent and doesn't meet like-minded people inside.
Yes, what is happening to young people, from vicious school bullies to terrorists, this is a frightening trend now.